An array of 64K labels triggers the error.

Environment:
System: FreeBSD FreeBSD.jphartmann.net 6.1-RELEASE FreeBSD 6.1-RELEASE
#1: Sat Jun 17 11:51:42 CEST 2006
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/KERNEL i386


        <machine, os, target, libraries (multiple lines)>
host: i386-unknown-freebsd6.1
build: i386-unknown-freebsd6.1
target: i386-unknown-freebsd6.1
configured with: ../gcc-4.1.1/configure --prefix=/home/john --with-cpu=i686

How-To-Repeat:
        There is no preprocessor statements in the failing program.
f/home/john/src/testing:make ts.s
cc -S -fverbose-asm -finline -Winline -Wall -O2 -fno-unroll-loops
-fno-unroll-all-loops -g -o ts.s ts.c
ts.c: In function `main':
ts.c:17: warning: unused variable `ic'
ts.c:22: internal compiler error: in make_decl_rtl, at varasm.c:752
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [ts.s] Error 1
f/home/john/src/testing:gcc --version
gcc (GCC) 4.1.1
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


------- Comment #1 from jphartmann at gmail dot com  2006-07-03 12:05 -------
Fix:
        No known circumvention.  I tried switch statements, but they
run the compiler out of storage after a while.  Apologies for
generating this by hand.  My system i mail-challenged.


-- 
           Summary: internal compiler error: in make_decl_rtl, at
                    varasm.c:752
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jphartmann at gmail dot com
 GCC build triplet: i386-unknown-freebsd6.1
  GCC host triplet: i386-unknown-freebsd6.1
GCC target triplet: i386-unknown-freebsd6.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28233

Reply via email to