------- Comment #6 from tdragon at tdragon dot net 2007-06-20 14:44 ------- Created an attachment (id=13743) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13743&action=view) Better testcase; compile with -O2, use with alias_main.c
Compiling this file with -O2 and linking with the object file from alias_main.c creates a program that demonstrates the miscompilation. Curiously, compiling with -O2 and -fno-strict-aliasing produces a correct compilation. -- tdragon at tdragon dot net changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #13701|0 |1 is obsolete| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32328