[Bug middle-end/36340] avr-gcc misoptimalizes loops

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue May 27 09:58:00 GMT 2008



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-05-27 09:57 -------
ntohs(((uint16_t*)&ph)[i]);

You are violating C/C++ aliasing rules as you are accessing ph (a
udp_checksum_t) as an unit16_t.

*** 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=36340



More information about the Gcc-bugs mailing list