This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17865] Bad code generation (using -O2 and -O3) on x86 target when using the listed snippet
- From: "davidel at xmailserver dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2004 18:30:18 -0000
- Subject: [Bug c/17865] Bad code generation (using -O2 and -O3) on x86 target when using the listed snippet
- References: <20041006181220.17865.davidel@xmailserver.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From davidel at xmailserver dot org 2004-10-06 18:30 -------
Note that this code works with -O1, and it is part on the NetLib math library
that worked for ages. Now, there are many ways to achieve the same thing, but if
aliasing rules wants to be enforced, the should be enforced with every
optimization level, and not break with -O2/3 and work just fine with -O1. A lot
of existing C code alias values in this or similar way, and if this breaks other
stuff will too.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17865