Jeff Horwitz wrote:
unfortunately, chromatic's memcpy patch still generated the compiler error, perhaps because gcc is optimizing it back to the original code it was replacing.

using memmove fixes this issue. it performs the copy, but it's not optimized in the same way because it deals with potentially overlapping memory. it's part of C89, so it should be fine to use. patch is attached.
Great, thanks. That sure has heck beats writing assignments for each members of the PMC struct, which was my "I want to stab myself for doing this but it'll fix the build" solution. :-)

If someone wants to apply this (of course, further feedback welcome) while I go sleep the night, that'd be great. Otherwise, I'll put it in myself before I start working on the release tomorrow.

Thanks,

Jonathan

Reply via email to