public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/9150: [3.4 regression] ICE in recog.c:2177 using -march=pentium3 and -fPIC
@ 2003-01-03 5:56 andrew
0 siblings, 0 replies; 2+ messages in thread
From: andrew @ 2003-01-03 5:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 9150
>Category: c
>Synopsis: [3.4 regression] ICE in recog.c:2177 using -march=pentium3 and -fPIC
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Thu Jan 02 21:56:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Andrew Pollard
>Release: gcc-3.4-20030102
>Organization:
>Environment:
i686-pc-linux-gnu/RedHat8.0 on a PIII system
Binutils 2.13.90.0.16
Compiler configured with:
/usr/local/src/cvs/gcc/configure --prefix=/usr/local/gcc-3.4-20030102-i686-pc-linux-gnu --with-gnu-as --with-gnu-ld --enable-version-specific-runtime-libs --enable-threads=posix --with-dwarf2 --disable-shared --enable-languages=c++ --enable-__cxa_atexit
Compiler compiled with:
make BOOT_CFLAGS='-O2 -march=pentium3' CFLAGS='-O2 -march=pentium3' CXXFLAGS='-O2 -march=pentium3' LIBCFLAGS='-g -O2 -march=pentium3' LIBCXXFLAGS='-g -O2 -march=pentium3 -fno-implicit-templates' bootstrap
>Description:
The following code fragment causes an ICE
ice.c:
-----------------------
float
foo(float bar)
{
return ((bar < 0) ? -bar : bar);
}
-----------------------
Using gcc-3.4-20030102, with -march=pentium3 -fPIC
% gcc34 -march=pentium3 -fpic ice.c
ice.c: In function `foo':
ice.c:6: error: unrecognizable insn:
(insn 18 33 19 2 (nil) (set (reg:V4SF 63)
(mem/u/f:V4SF (symbol_ref/u:SI ("*.LC1")) [0 S16 A128])) -1 (nil)
(expr_list:REG_EQUAL (const_vector:V4SF [
(const_double:SF 0 [0x0] -0.0 [-0x0.0p+0])
(const_double:SF 0 [0x0] 0.0 [0x0.0p+0])
(const_double:SF 0 [0x0] 0.0 [0x0.0p+0])
(const_double:SF 0 [0x0] 0.0 [0x0.0p+0])
])
(nil)))
ice.c:6: internal compiler error: in extract_insn, at recog.c:2177
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Removing either the -march or -fPIC makes it work.
This worked with gcc-3.3 (and earlier), compiled and configured in a similar way.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c/9150: [3.4 regression] ICE in recog.c:2177 using -march=pentium3 and -fPIC
@ 2003-01-03 6:06 Andrew Pinski
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Pinski @ 2003-01-03 6:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/9150; it has been noted by GNATS.
From: Andrew Pinski <pinskia@physics.uc.edu>
To: andrew@andypo.net
Cc: Andrew Pinski <pinskia@physics.uc.edu>, gcc-gnats@gcc.gnu.org
Subject: Re: c/9150: [3.4 regression] ICE in recog.c:2177 using -march=pentium3 and -fPIC
Date: Thu, 2 Jan 2003 22:02:51 -0800
really all that is need is -msse and -fpic.
Thanks,
Andrew Pinski
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-03 6:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-03 5:56 c/9150: [3.4 regression] ICE in recog.c:2177 using -march=pentium3 and -fPIC andrew
2003-01-03 6:06 Andrew Pinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).