This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14289] New: ICE in a register array
- From: "meccoli at nergal dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Feb 2004 11:04:40 -0000
- Subject: [Bug c/14289] New: ICE in a register array
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
should it be a compilation error???
COMMAND:
gcc -S -O0 -save-temps pippo.c
OUTPUT:
pippo.c: In function `Nase':
pippo.c:5: warning: address of register variable `a' requested
pippo.c:5: internal compiler error: Segmentation fault
PREPROCESSED FILE:
# 1 "pippo.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "pippo.c"
register int a[2] asm("ebx");
void Nase(void)
{
int i=6;
a[i]=5;
}
--
Summary: ICE in a register array
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: meccoli at nergal dot it
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: linux 2.4 on i386
GCC target triplet: linux 2.4 on i386
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14289