This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/1705: ice in process_init_element while compiling linux-2.4.0
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/1705: ice in process_init_element while compiling linux-2.4.0
- From: schmid at snake dot iap dot physik dot tu-darmstadt dot de
- Date: Fri, 19 Jan 2001 21:51:41 +0100
>Number: 1705
>Category: c
>Synopsis: ice in process_init_element while compiling linux-2.4.0
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Fri Jan 19 12:56:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Peter Schmid
>Release: 2.97 20010118 (experimental)
>Organization:
TU Darmstadt
>Environment:
System: Linux kiste 2.4.0 #25 Tue Jan 16 01:22:25 CET 2001 i686 unknown
Architecture: i686
glibc 2.1.3
GNU assembler version 2.10.91 (i686-pc-linux-gnu) using BFD version 2.10.1.0.4
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --enable-nls --enable-shared
>Description:
When the source file ti.c is compiled by gcc-20010118, an iternal
compiler error occurs. The file ti.c is a stripped down version of the
file arch/i386/kernel/irq.c form the linux-2.4.0 kernel sources.
>How-To-Repeat:
source file ti.c
#define CONFIG_X86_L1_CACHE_SHIFT (5)
#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
#define SMP_CACHE_BYTES L1_CACHE_BYTES
#define ____cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
#define __cacheline_aligned \
__attribute__((__aligned__(SMP_CACHE_BYTES), \
__section__(".data.cacheline_aligned")))
#define NR_IRQS 224
typedef struct {
unsigned int status;
unsigned int depth;
} ____cacheline_aligned irq_desc_t;
extern irq_desc_t irq_desc [NR_IRQS];
irq_desc_t irq_desc[NR_IRQS] __cacheline_aligned =
{ [0 ... NR_IRQS-1] = { 0, 0};
gcc -v -c ti.c
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/specs
Configured with: ../gcc/configure --enable-nls --enable-shared
gcc version 2.97 20010118 (experimental)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/cc1 -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=97 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ ti.c -quiet -dumpbase ti.c -version -o /tmp/ccccP4Kc.s
GNU CPP version 2.97 20010118 (experimental) (cpplib) (i386 Linux/ELF)
GNU CPP version 2.97 20010118 (experimental) (cpplib) (i386 Linux/ELF)
GNU C version 2.97 20010118 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 2.97 20010118 (experimental).
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/include
/usr/local/i686-pc-linux-gnu/include
/usr/include
End of search list.
ti.c:24: Internal compiler error in process_init_element, at c-typeck.c:6696
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: