This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/38537] -fstrict-aliasing and -Wstrict-aliasing do not work
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2008 23:55:52 -0000
- Subject: [Bug middle-end/38537] -fstrict-aliasing and -Wstrict-aliasing do not work
- References: <bug-38537-17084@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2008-12-15 23:55 -------
On the trunk we do get a warning:
t.c: In function ?main?:
t.c:7: warning: dereferencing pointer ?({anonymous})? does break
strict-aliasing rules
t.c:7: note: initialized from here
Though it seems like the warning itself could be improved.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38537