16408 – [3.4 Regression] internal compiler error: in delete_insn, at cfgrtl.c:146 (original) (raw)

Description Treeve Jelbert 2004-07-07 14:57:17 UTC

gcc-3.4.1 linux-2.6.7 x86

g++ -O -march=athlon-tbird -mmmx -m3dnow -pipe -O3 -O -march=athlon-tbird -mmmx -m3dnow -pipe -O3 -I../src/include/gen -I../src/include -O
-march=athlon-tbird -mmmx -m3dnow -pipe -O3 -fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC -fmessage-length=0
-DPROD_BUILD -DSUPERSERVER -I../src/include/gen -I../src/include -O -march=athlon-tbird -mmmx -m3dnow -pipe -O3 -fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC -fmessage-length=0
-DPROD_BUILD -c ../src/jrd/svc.cpp -o ../temp/superserver/jrd/svc.o ../src/jrd/svc.cpp: In function `void* SVC_read_ib_log(void*)': ../src/jrd/svc.cpp:2106: internal compiler error: in delete_insn, at cfgrtl.c:146

Comment 2 Treeve Jelbert 2004-07-07 15:07:06 UTC

gcc -v Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/specs Configured with: /usr/src/gcc-3.4.1/configure --host=i686-pc-linux-gnu --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --enable-threads=posix --with-system-zlib Thread model: posix gcc version 3.4.1

Comment 3 Drea Pinski 2004-07-07 15:53:07 UTC

I can confirm this but I do not have a reduced testcase, someone please reduce this for me.

Comment 4 Volker Reichelt 2004-07-07 17:05:10 UTC

Here's a testcase that crashes the C as well as the C++ frontend. Just compile with "-O2 -fPIC":

=============================================== int *baz() attribute ((const));

void bar(int**);

void foo(int i) { int *p;

if (i) *p = 0; bar(&p); *p++ = *baz(); *p++ = 0; }

Comment 5 Volker Reichelt 2004-08-25 12:36:09 UTC

The regression was introduced here: : Search converges between 2003-06-19-trunk (#269) and 2003-06-20-trunk (#270).

It was fixed on mainline by the tree-ssa-merge.

Comment 8 Mark Mitchell 2004-08-29 18:12:07 UTC

Postponed until GCC 3.4.3.

Comment 9 Mark Mitchell 2004-08-29 18:14:46 UTC

Postponed until GCC 3.4.3.

Comment 12 Zdenek Dvorak 2004-09-01 20:31:41 UTC

Fixed.