This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
reduced testcase for dwarf1 ICE
- To: gcc at gcc dot gnu dot org
- Subject: reduced testcase for dwarf1 ICE
- From: Robert Lipe <robertl at sco dot com>
- Date: Tue, 2 May 2000 22:46:41 -0500
This tiny test is inspired by a longstanding bootstrap failure on
OpenServer.
Compile thusly
to watch it fail on an Linux/IA32 target:
$ ./xgcc -B./ -O2 -gdwarf -g2 ./d.c
./d.c: In function `expand_nl_goto_receiver':
./d.c:6: Internal compiler error in `dwarfout_file_scope_decl', at dwarfout.c:5307
Moving the struct elims into global scope or removing the additional
scoping from the function will cause it to not abort.
static void expand_nl_goto_receiver ()
{ { static struct elims {int from, to;} elim_regs[] = {{ 16, 7}, { 16, 6}, { 20, 7}, { 20, 6}};
int i;
for (i = 0; i < sizeof elim_regs / sizeof elim_regs[0]; i++) if (elim_regs[i].from == 16 && elim_regs[i].to == 6) break; }
}
If there is additional info you need, let me know.
Thanx,
RJL