http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49119
Mikael Pettersson <mikpe at it dot uu.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpe at it dot uu.se --- Comment #3 from Mikael Pettersson <mikpe at it dot uu.se> 2011-08-22 16:40:35 UTC --- I can't reproduce the wrong code on powerpc64-linux (with -m32), or on m68k-linux (also big-endian, assuming it's an endianess issue) with gcc-4.6.2-recentish. How exactly was your gcc configured, and how did you invoke it on this test case? Also please inspect the generated assembly code (gcc -S) rather than disassembled object code (objdump -d). Disassembly tends to omit relocation data.