------- Comment #3 from pinskia at gcc dot gnu dot org 2006-02-09 01:02 ------- You are violating aliasing rules which is why this does not work at -O3. Either access the variable ptr as a "struct blah *" or use -fno-strict-aliasing.
*** This bug has been marked as a duplicate of 21920 *** -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26144