[Bug c/36360] Apparent optimization bug, possible regression

2008-05-28 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2008-05-28 22:25 --- Constructs like ((struct sockaddr_in *)(&svaddr))->sin_port violate C aliasing rules if svaddr is not of type struct sockaddr_in. You can either use -fno-strict-aliasing or do the type-punning via memcpy or by usi

[Bug c/36360] Apparent optimization bug, possible regression

2008-05-28 Thread orion at cora dot nwra dot com
--- Comment #1 from orion at cora dot nwra dot com 2008-05-28 22:13 --- Created an attachment (id=15694) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15694&action=view) Pre-processed stream.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36360