Bug 1069 - Internal compiler error in gcc-20001211
Summary: Internal compiler error in gcc-20001211
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 2.97
: P2 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2000-12-14 16:26 UTC by dl8bcu
Modified: 2003-07-25 17:33 UTC (History)
3 users (show)

See Also:
Host: alpha-unknown-linux-gnu
Target: alpha-unknown-linux-gnu
Build: alpha-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments
ip_tables.i.gz (80.14 KB, application/x-gzip )
2003-05-21 15:15 UTC, dl8bcu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dl8bcu 2000-12-14 16:26:01 UTC
	gcc breaks on the compilation of linux kernel code (2.4.0test12) with an 
	ICE. This bug was not present on earlier gcc snapshots (e.g. 20000925)
	eith kernel 2.4.0test10.  The failing struct initialisation differs from
	2.4.0pre10 in that there is in pre12 one component (char[]) less to 
	initialize.
	
gcc -D__KERNEL__ -I/usr/src/linux-2.4.0-test12-work/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8 -mcpu=ev4 -Wa,-mev6    -DEXPORT_SYMTAB -c ip_tables.c
ip_tables.c: In function `ipt_register_table':
ip_tables.c:1361: Internal compiler error in array_size_for_constructor, at varasm.c:4456
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[3]: *** [ip_tables.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.0-test12-work/net/ipv4/netfilter'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.0-test12-work/net/ipv4/netfilter'
make[1]: *** [_subdir_ipv4/netfilter] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.0-test12-work/net'
make: *** [_dir_net] Error 2

Release:
2.97 20001211 (experimental)

Environment:
System: Linux Marvin 2.4.0-test10 #1 Fri Oct 20 00:31:02 UTC 2000 alpha unknown
Architecture: alpha
	Alpha AXPpci33, ev4
	glibc-2.1.3
	
host: alpha-unknown-linux-gnu
build: alpha-unknown-linux-gnu
target: alpha-unknown-linux-gnu
configured with: ../gcc-20001211/configure --enable-threads --enable-shared --prefix=/usr --enable-languages=c,c++

How-To-Repeat:
	issue gcc command line as follows:


Marvin:/usr/src/linux-2.4.0-test12-work/net/ipv4/netfilter$ gcc -v -save-temps -D__KERNEL__ -I/usr/src/linux-2.4.0-test12-work/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8 -mcpu=ev4 -Wa,-mev6    -DEXPORT_SYMTAB -c ip_tables.c
gcc: Warning: -pipe ignored because -save-temps specified
Reading specs from /usr/lib/gcc-lib/alpha-unknown-linux-gnu/2.97/specs
Configured with: ../gcc-20001211/configure --enable-threads --enable-shared --prefix=/usr --enable-languages=c,c++
gcc version 2.97 20001211 (experimental)
 /usr/lib/gcc-lib/alpha-unknown-linux-gnu/2.97/cpp0 -lang-c -v -I/usr/src/linux-2.4.0-test12-work/include
-D__GNUC__=2 -D__GNUC_MINOR__=97 -D__GNUC_PATCHLEVEL__=0 -Dlinux -Dunix -D_LONGLONG -D__alpha__ -D__ELF__
-D__linux__ -D__unix__ -D_LONGLONG -D__alpha__ -D__ELF__ -D__linux -D__unix -Asystem=linux -D__OPTIMIZE__
-D__STDC_HOSTED__=1 -Wall -Wstrict-prototypes -D__LANGUAGE_C__ -D__LANGUAGE_C -DLANGUAGE_C -Acpu=alpha -Amachine=alpha -D__alpha -D__alpha__ -D__alpha_ev4__ -Acpu=ev4 -D__KERNEL__ -DEXPORT_SYMTAB ip_tables.c ip_tables.i
GNU CPP version 2.97 20001211 (experimental) (cpplib) (Alpha GNU/Linux for ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/src/linux-2.4.0-test12-work/include
 /usr/local/include
 /usr/lib/gcc-lib/alpha-unknown-linux-gnu/2.97/include
 /usr/alpha-unknown-linux-gnu/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/alpha-unknown-linux-gnu/2.97/cc1 -fpreprocessed ip_tables.i -quiet -dumpbase ip_tables.c -mno-fp-regs -mcpu=ev4 -O2 -Wall -Wstrict-prototypes -version -fomit-frame-pointer -fno-strict-aliasing -ffixed-8 -o ip_tables.s
GNU C version 2.97 20001211 (experimental) (alpha-unknown-linux-gnu) compiled by GNU C version 2.97 20001211 (experimental).
ip_tables.c: In function `ipt_register_table':
ip_tables.c:1361: Internal compiler error in array_size_for_constructor, at varasm.c:4456
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.



See attachments for ip_tables.i.gz
Comment 1 Joseph S. Myers 2001-06-04 09:56:01 UTC
State-Changed-From-To: open->feedback
State-Changed-Why: Does this problem still occur with current GCC 3.0
    CVS or snapshots?
Comment 2 Joseph S. Myers 2001-06-04 14:52:22 UTC
State-Changed-From-To: feedback->closed
State-Changed-Why: Submitter reports fixed.
Comment 3 Joseph S. Myers 2001-06-04 16:56:01 UTC
From: jsm28@gcc.gnu.org
To: dl8bcu@gmx.net, gcc-gnats@gcc.gnu.org, jsm28@cam.ac.uk, nobody@gcc.gnu.org
Cc:  
Subject: Re: c/1069
Date: 4 Jun 2001 16:56:01 -0000

 Synopsis: Internal compiler error in gcc-20001211
 
 State-Changed-From-To: open->feedback
 State-Changed-By: jsm28
 State-Changed-When: Mon Jun  4 09:56:01 2001
 State-Changed-Why:
     Does this problem still occur with current GCC 3.0
     CVS or snapshots?
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=1069&database=gcc

Comment 4 th 2001-06-04 21:36:39 UTC
From: Thorsten Kranzkowski <th@Marvin.DL8BCU.ampr.org>
To: jsm28@gcc.gnu.org
Cc: gcc-gnats@gcc.gnu.org, jsm28@cam.ac.uk, nobody@gcc.gnu.org
Subject: Re: c/1069
Date: Mon, 4 Jun 2001 21:36:39 +0000

 On Mon, Jun 04, 2001 at 04:56:01PM -0000, jsm28@gcc.gnu.org wrote:
 > Synopsis: Internal compiler error in gcc-20001211
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: jsm28
 > State-Changed-When: Mon Jun  4 09:56:01 2001
 > State-Changed-Why:
 >     Does this problem still occur with current GCC 3.0
 >     CVS or snapshots?
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=1069&database=gcc
 > 
 
 Hello!
 I'm tracking 3.1 CVS here and this bug has vanished.
 Thanks for looking into this,
 Thorsten
 
 
 Marvin:~$ gcc -D__KERNEL__ -I/usr/src/linux-2.4.0-test12-work/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mno-fp-regs -ffixed-8 -mcpu=ev4 -Wa,-mev6 -DEXPORT_SYMTAB -c ip_tables.i
 Marvin:~$ gcc -v
 Reading specs from /usr/lib/gcc-lib/alpha-unknown-linux-gnu/3.1/specs
 Configured with: ../gcc/configure --prefix=/usr --enable-languages=c,c++
 Thread model: single
 gcc version 3.1 20010502 (experimental)
 Marvin:~$ uname -a
 Linux Marvin 2.4.4-ac13 #1 Tue May 22 20:41:53 UTC 2001 alpha unknown
 Marvin:~$
 
 
 -- 
 | Thorsten Kranzkowski        Internet: dl8bcu@gmx.net                        |
 | Mobile: ++49 170 1876134       Snail: Niemannsweg 30, 49201 Dissen, Germany |
 | Ampr: dl8bcu@db0lj.#rpl.deu.eu, dl8bcu@marvin.dl8bcu.ampr.org [44.130.8.19] |
Comment 5 Joseph S. Myers 2001-06-04 21:52:22 UTC
From: jsm28@gcc.gnu.org
To: dl8bcu@gmx.net, gcc-gnats@gcc.gnu.org, jsm28@cam.ac.uk, nobody@gcc.gnu.org
Cc:  
Subject: Re: c/1069
Date: 4 Jun 2001 21:52:22 -0000

 Synopsis: Internal compiler error in gcc-20001211
 
 State-Changed-From-To: feedback->closed
 State-Changed-By: jsm28
 State-Changed-When: Mon Jun  4 14:52:22 2001
 State-Changed-Why:
     Submitter reports fixed.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=1069&database=gcc