------- Comment #2 from ddenisen at altera dot com 2008-11-20 14:57 ------- I searched through all the options in -O2 that are not in -O1 and found that only one triggers the problem: -fstrict-aliasing.
To summarize, "g++ -m32 -O1 a.ii" does not cause the problem but "g++ -m32 -O1 -fstrict-aliasing a.ii" does. Changing the title of the bug to reflect this information. -- ddenisen at altera dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Wrong register used to get |-fstrict-aliasing causes |struct information |wrong register usage http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38185