This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/19008] [3.3 regression] [arm] gcc-3.3 -O3 -fPIC produce wrong code via auto inlining
- From: "rearnsha 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 2004 11:59:40 -0000
- Subject: [Bug target/19008] [3.3 regression] [arm] gcc-3.3 -O3 -fPIC produce wrong code via auto inlining
- References: <20041215112733.19008.debian-gcc@lists.debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rearnsha at gcc dot gnu dot org 2004-12-15 11:59 -------
use_maximal_pivot() is casting longs to pointers and vice-versa. I strongly
suspect this code is violating C's aliasing rules. The inlining of the function
then opens up more chances for the scheduler to move things out of order.
Does the program run correctly if you use -fno-strict-alias?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19008