This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/9786: g++ ice on x86 with -fnon-call-exceptions and -O2
- From: nick at ilm dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 21 Feb 2003 01:25:42 -0000
- Subject: c++/9786: g++ ice on x86 with -fnon-call-exceptions and -O2
- Reply-to: nick at ilm dot com
>Number: 9786
>Category: c++
>Synopsis: g++ ice on x86 with -fnon-call-exceptions and -O2
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Fri Feb 21 01:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: nick at ilm dot com
>Release: gcc-3.2.2, gcc version 3.3 20030220 (prerelease)
>Organization:
>Environment:
x86 redhat-7.2 with current updates
>Description:
the same ICE occurs with both gcc-3.2.2 and the head
of the gcc-3_3-branch:
> /dept/rnd/vendor/gcc-3.3cvs/bin/g++ -v -fnon-call-exceptions -Wall -O2 -c foo.C -o foo.o
Reading specs from /dept/rnd/vendor/gcc-3.3cvs/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc/configure --prefix=/dept/rnd/vendor/gcc-3.3cvs --enable-threads --enable-languages=c,c++
Thread model: posix
gcc version 3.3 20030220 (prerelease)
/dept/rnd/vendor/gcc-3.3cvs/lib/gcc-lib/i686-pc-linux-gnu/3.3/cc1plus -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D_GNU_SOURCE foo
.C -D__GNUG__=3 -quiet -dumpbase foo.C -auxbase-strip foo.o -O2 -Wall -version -fnon-call-exceptions -o /usr/tmp/ccNboRkg.s
GNU C++ version 3.3 20030220 (prerelease) (i686-pc-linux-gnu)
compiled by GNU C version 2.96 20000731 (Red Hat Linux 7.1 2.96-98).
ignoring nonexistent directory "/dept/rnd/vendor/gcc-3.3cvs/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/dept/rnd/vendor/gcc-3.3cvs/include/c++/3.3
/dept/rnd/vendor/gcc-3.3cvs/include/c++/3.3/i686-pc-linux-gnu
/dept/rnd/vendor/gcc-3.3cvs/include/c++/3.3/backward
/usr/local/include
/dept/rnd/vendor/gcc-3.3cvs/include
/dept/rnd/vendor/gcc-3.3cvs/lib/gcc-lib/i686-pc-linux-gnu/3.3/include
/usr/include
End of search list.
foo.C: In constructor `B::B(const D2&)':
foo.C:20: internal compiler error: in fixup_abnormal_edges, at reload1.c:9498
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
A small test case demonstrating this is attached.
This bug may be related to the previously reported
fixup_abnormal_edges optimization bugs triggered
with gcj compiles - 6581 and 4571.
>How-To-Repeat:
g++ -fnon-call-exceptions -Wall -O2 -c foo.C -o foo.o
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="foo.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo.C"
c3RydWN0IEQxIHsKICAgIGZsb2F0IGw7CiAgICBEMSBHUygpIGNvbnN0IHtEMSBkO2Zsb2F0IGY9
LjI5OSpsO2QubD1mO3JldHVybiBkO30KICAgIHN0YXRpYyBEMSBHKCkge3JldHVybiBEMSgpO30K
fTsKc3RydWN0IEQyIHsKICAgIEQxIGc7CiAgICBEMihjb25zdCBEMSYgZ2kpIDogZyhnaSkge30K
ICAgIEQyIEdTKCkgY29uc3Qge3JldHVybiBEMihnLkdTKCkpO30KfTsKY2xhc3MgQSB7CiAgcHVi
bGljOgogICAgdmlydHVhbCB+QSgpIHt9Cn07CmNsYXNzIEIgOiBwdWJsaWMgQSB7CiAgcHVibGlj
OgogICAgQihjb25zdCBEMiYgbWkpOwogICAgRDIgZm07Cn07CkI6OkIoY29uc3QgRDIgJm1pKSA6
IGZtKG1pLkdTKCkpIHt9Cg==