http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53663
Mikael Pettersson <mikpe at it dot uu.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpe at it dot uu.se --- Comment #6 from Mikael Pettersson <mikpe at it dot uu.se> 2012-09-23 11:56:50 UTC --- I can reproduce the wrong-code with gcc 4.7-20120922 and 4.8-20120916, at -O1, on x86_64-linux. -O2 avoids the wrong-code, but if I replace the "*vp = v" with the equivalent __builtin_memcpy() then -O2 also generates wrong code. gcc-4.6 seems to work correctly.