This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/40422] using optimization breaks code
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jun 2009 07:38:21 -0000
- Subject: [Bug c/40422] using optimization breaks code
- References: <bug-40422-17829@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from jakub at gcc dot gnu dot org 2009-06-12 07:38 -------
The testcase is buggy, fix_end(((unsigned int*)&i)[0]); etc. violates strict
aliasing. Either compile with -fno-strict-aliasing, or better yet fix it to be
valid C code.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40422