This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/19008] New: [3.3 regression] [arm] gcc-3.3 -O3 -fPIC produce wrong code via auto inlining
- From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2004 11:27:35 -0000
- Subject: [Bug target/19008] New: [3.3 regression] [arm] gcc-3.3 -O3 -fPIC produce wrong code via auto inlining
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[forwarded from http://bugs.debian.org/285238]
works with 3.4.3
gcc-3.3 -O3 -fPIC miscompile pari on ARM.
(see
<http://buildd.debian.org/fetch.php?&pkg=pari&ver=2.1.6-1&arch=arm&stamp=1102707589&file=log&as=raw>)
More precisely the file src/basemath/alglin1.c
is miscompiled with -O3 -fPIC but correctly compiled with -O3 or -O2 -fPIC
This is a regression since gcc-3.3_1:3.3.2-0pre5 built the same
file correctly with -O3 -fPIC.
Apparenlty gcc inline the function use_maximal_pivot() inside
gauss_pivot_ker() and produce wrong code there.
Removing the static qualifier from use_maximal_pivot() (thus forbidding
the compiler to enable) work around the bug.
--
Summary: [3.3 regression] [arm] gcc-3.3 -O3 -fPIC produce wrong
code via auto inlining
Product: gcc
Version: 3.3.5
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: arm-linux
GCC host triplet: arm-linux
GCC target triplet: arm-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19008