[Bug c/17665] wrong code with -O2

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Sep 24 23:39:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-24 23:39 -------
 newhead=*(void **) head;
 *(char **) head=NULL;

You are violating aliasing rules here. Either fix your code or use -fno-strict-aliasing.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
            Summary|                            |wrong code with -O2


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



More information about the Gcc-bugs mailing list