------- Comment #4 from reichelt at gcc dot gnu dot org 2006-05-10 14:59 ------- As Pawel already pointed out: Your code is brokan as you are violating the aliasing rules.
Please read about this in the non-bug section of http://gcc.gnu.org/bugs.html : "Casting does not work as expected when optimization is turned on." *** This bug has been marked as a duplicate of 21920 *** -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27533