[Bug target/39593] faulty value assignment

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Mar 30 23:57:00 GMT 2009



------- Comment #3 from pinskia at gcc dot gnu dot org  2009-03-30 23:57 -------

 BYTE b[4];

 *((DWORD *)b) = x;


this is violating aliasing rules.  Does adding -fno-strict-aliasing allow this
to work?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39593



More information about the Gcc-bugs mailing list