This is the mail archive of the gcc-bugs@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]

Internal error in dwarf2out.c:7633 (scope_die_for) under IRIX


This file:

ftp://monet.uwaterloo.ca/pub/todd/dwarf2out-bug.cpp

causes an internal compiler error with the 19980608 snapshot of egcs
under IRIX 6.5 when using -g:

bash$ g++ -g -c dwarf2out-bug.cpp
dwarf2out.c:7633: Internal compiler error in function scope_die_for

When -g is omitted, no problem.  The same problem occurs for several 
other files in the blitz testsuite (blitz-19980610).

I checked to see if the problem also occurs for a i686-linux,
and it doesn't.  My wild guess is that it's a code generator
problem; the spot which fails in dwarf2out.c is:

7631          if (debug_info_level > DINFO_LEVEL_TERSE
7632              && !TREE_ASM_WRITTEN (containing_scope))
7633            abort ();

For some reason, TREE_ASM_WRITTEN(containing_scope) is false
when it should be true.


bash$ g++ -v
Reading specs from /am/nestegg/u4/tvldhzn/software/egcs/lib/gcc-lib/mips-sgi-irix6.5_ALPHA_1274427935/egcs-2.91.40/specs
gcc version egcs-2.91.40 19980608 (gcc2 ss-980502 experimental)




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