This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

reduced testcase for dwarf1 ICE


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]