This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/61196] Optimizer does not handle memory accesses with two pointers to same location correctly
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 May 2014 07:35:53 +0000
- Subject: [Bug middle-end/61196] Optimizer does not handle memory accesses with two pointers to same location correctly
- Auto-submitted: auto-generated
- References: <bug-61196-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61196
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |ebotcazou at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
The code breaks the aliasing rules of ISO C and thus has undefined behavior.
Compile with -Wstrict-aliasing=1 to get a warning and -fno-strict-aliasing to
ask it to be forgiving about the violation.