19991228 chk-ICE at tree.c:4853 compiling gcc/ch/lex.c on i586-sco-sysv5uw7.1.0
Brown, Rodney
rodneybrown@pmsc.com
Thu Dec 30 04:35:00 GMT 1999
Title: 19991228 chk-ICE at tree.c:4853 compiling gcc/ch/lex.c on i586-sco-sysv5uw7.1.0
i586-sco-sysv5uw7.1.0 --enable-checking
stage1/xgcc -Bstage1/ -B/usr/local/i586-sco-sysv5uw7.1.0/bin/ -cÃÂ -DIN_GCCÃÂ ÃÂ -W -Wall -Wtraditional -O2 -g -O2ÃÂ ÃÂ ÃÂ ÃÂ -I. -I.. -I../../../egcs-19991228/gcc/ch -I../../../egcs-19991228/gcc/ch/.. -I../../../egcs-19991228/gcc/ch/../config -I../../../egcs-19991228/gcc/ch/../../include ../../../egcs-19991228/gcc/ch/lex.c
../../../egcs-19991228/gcc/ch/lex.c: In function `handle_name':
../../../egcs-19991228/gcc/ch/lex.c:665: Tree check: expected class 'd', have 't' (enumeral_type)
../../../egcs-19991228/gcc/ch/lex.c:665: Internal compiler error in `decl_function_context', at tree.c:4853
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.
make[3]: *** [lex.o] Error 1
make[3]: Leaving directory `/devel/src/egcs-19991228.chk/gcc/ch'
ÃÂ stage1/cc1 lex.i -quiet -dumpbase lex.c -g -O2 -O2 -W -Wall -Wtraditional -version -o lex.s
GNU C version 2.96 19991228 (experimental) (i586-sco-sysv5uw7.1.0) compiled by GNU C version 2.95.2 19991024 (release).
../../../egcs-19991228/gcc/ch/lex.c: In function `handle_name':
../../../egcs-19991228/gcc/ch/lex.c:665: Tree check: expected class 'd', have 't' (enumeral_type)
../../../egcs-19991228/gcc/ch/lex.c:665: Internal compiler error in `decl_function_context', at tree.c:4853
Please submit a full bug report.
GNU C version 2.96 19991228 (experimental) (i586-sco-sysv5uw7.1.0) compiled by GNU C version 2.95.2 19991024 (release).
Breakpoint 5, decl_function_context (decl=0xbfe6f300)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/tree.c:4853
4853ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ context = DECL_CONTEXT (decl);
#0ÃÂ decl_function_context (decl=0xbfe6f300)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/tree.c:4853
#1ÃÂ 0x8149877 in make_function_rtl (decl=0xbfe6f300)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/varasm.c:523
#2ÃÂ 0x86b1248 in start_function (declspecs=0xbfe71620, declarator=0xbfe71880,
ÃÂ ÃÂ ÃÂ prefix_attributes=0x0, attributes=0x0, nested=0)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/c-decl.c:6047
#3ÃÂ 0x8691f95 in yyparse () at ../../egcs-19991228/gcc/c-parse.c:307
#4ÃÂ 0x804c85b in compile_file (name=0xbff61398 "lex.i")
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/toplev.c:2383
#5ÃÂ 0x80516e7 in main (argc=14, argv=0x8047ccc)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/toplev.c:4791
#6ÃÂ 0x8049121 in _start ()
4848ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ and use something else for the "virtual context".ÃÂ */
4849ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ else if (TREE_CODE (decl) == FUNCTION_DECL && DECL_VINDEX (decl))
4850ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ context = TYPE_MAIN_VARIANT
4851ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ (TREE_TYPE (TREE_VALUE (TYPE_ARG_TYPES (TREE_TYPE (decl)))));
4852ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ else
4853ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ context = DECL_CONTEXT (decl);
4854ÃÂ ÃÂ ÃÂ
4855ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ while (context && TREE_CODE (context) != FUNCTION_DECL)
4856ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ {
4857ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ if (TREE_CODE (context) == BLOCK)
(gdb) ptype decl
type = union tree_node {
ÃÂ ÃÂ ÃÂ struct tree_common common;
ÃÂ ÃÂ ÃÂ struct tree_int_cst int_cst;
ÃÂ ÃÂ ÃÂ struct tree_real_cst real_cst;
ÃÂ ÃÂ ÃÂ struct tree_string string;
ÃÂ ÃÂ ÃÂ struct tree_complex complex;
ÃÂ ÃÂ ÃÂ struct tree_identifier identifier;
ÃÂ ÃÂ ÃÂ struct tree_decl decl;
ÃÂ ÃÂ ÃÂ struct tree_type type;
ÃÂ ÃÂ ÃÂ struct tree_list list;
ÃÂ ÃÂ ÃÂ struct tree_vec vec;
ÃÂ ÃÂ ÃÂ struct tree_exp exp;
ÃÂ ÃÂ ÃÂ struct tree_block block;
} *
(gdb) call debug_tree(decl)
ÃÂ <function_decl bfe6f300 getlogin_r
ÃÂ ÃÂ ÃÂ type <function_type bfe77e00
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ type <integer_type bff75400 int
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent SI
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ size <integer_cst bff77560 constant permanent 32>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ align 32 symtab 0 alias set 2 precision 32
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ min <integer_cst bff77520 constant permanent -2147483648>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ max <integer_cst bff77540 constant permanent 2147483647>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ pointer_to_this <pointer_type bff71500>>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent DI
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ size <integer_cst bff776a0 constant permanent 64>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ align 32 symtab 0 alias set 0
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ arg-types <tree_list bfe71160
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent value <pointer_type bff71280>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ chain <tree_list bfe71180
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent value <integer_type bff31480 size_t>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ chain <tree_list bfe711a0
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent value <void_type bff73900 void>>>>>
ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ permanent static in_system_header QI file include/stdlib.h line 226
ÃÂ ÃÂ ÃÂ initial <error_mark bff7d330> chain <function_decl bfe6f100 _xttyname_r>>
(gdb)
ÃÂ <function_decl bfe6f300 getlogin_r
ÃÂ ÃÂ ÃÂ type <function_type bfe77e00
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ type <integer_type bff75400 int
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent SI
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ size <integer_cst bff77560 constant permanent 32>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ align 32 symtab 0 alias set 2 precision 32
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ min <integer_cst bff77520 constant permanent -2147483648>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ max <integer_cst bff77540 constant permanent 2147483647>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ pointer_to_this <pointer_type bff71500>>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent DI
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ size <integer_cst bff776a0 constant permanent 64>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ align 32 symtab 0 alias set 0
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ arg-types <tree_list bfe71160
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent value <pointer_type bff71280>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ chain <tree_list bfe71180
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent value <integer_type bff31480 size_t>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ chain <tree_list bfe711a0
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent value <void_type bff73900 void>>>>>
ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ permanent static in_system_header QI file include/stdlib.h line 226
ÃÂ ÃÂ ÃÂ initial <error_mark bff7d330> chain <function_decl bfe6f100 _xttyname_r>>
(gdb) ptype context
type = union tree_node {
ÃÂ ÃÂ ÃÂ struct tree_common common;
ÃÂ ÃÂ ÃÂ struct tree_int_cst int_cst;
ÃÂ ÃÂ ÃÂ struct tree_real_cst real_cst;
ÃÂ ÃÂ ÃÂ struct tree_string string;
ÃÂ ÃÂ ÃÂ struct tree_complex complex;
ÃÂ ÃÂ ÃÂ struct tree_identifier identifier;
ÃÂ ÃÂ ÃÂ struct tree_decl decl;
ÃÂ ÃÂ ÃÂ struct tree_type type;
ÃÂ ÃÂ ÃÂ struct tree_list list;
ÃÂ ÃÂ ÃÂ struct tree_vec vec;
ÃÂ ÃÂ ÃÂ struct tree_exp exp;
ÃÂ ÃÂ ÃÂ struct tree_block block;
} *
(gdb) p context
$1 = (union tree_node *) 0xbff75400
(gdb) call debug_tree(context)
ÃÂ <integer_type bff75400 int
ÃÂ ÃÂ ÃÂ permanent SI
ÃÂ ÃÂ ÃÂ size <integer_cst bff77560 type <integer_type bff73580 unsigned int> constant permanent 32>
ÃÂ ÃÂ ÃÂ align 32 symtab 0 alias set 2 precision 32
ÃÂ ÃÂ ÃÂ min <integer_cst bff77520 type <integer_type bff75400 int> constant permanent -2147483648>
ÃÂ ÃÂ ÃÂ max <integer_cst bff77540 type <integer_type bff75400 int> constant permanent 2147483647>
ÃÂ ÃÂ ÃÂ pointer_to_this <pointer_type bff71500>>
(gdb) c
Continuing.
Breakpoint 5, decl_function_context (decl=0xbfe6f300)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/tree.c:4853
4853ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ context = DECL_CONTEXT (decl);
(gdb) c
Continuing.
Breakpoint 5, decl_function_context (decl=0xbfe6f200)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/tree.c:4853
4853ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ context = DECL_CONTEXT (decl);
(gdb) c
Continuing.
Breakpoint 5, decl_function_context (decl=0xbfe6f180)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/tree.c:4853
4853ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ context = DECL_CONTEXT (decl);
(gdb) bt
#0ÃÂ decl_function_context (decl=0xbfe6f180)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/tree.c:4853
#1ÃÂ 0x80f1639 in expand_expr (exp=0xbfe6f180, target=0x0, tmode=VOIDmode,
ÃÂ ÃÂ ÃÂ modifier=EXPAND_NORMAL) at ../../egcs-19991228/gcc/expr.c:5917
#2ÃÂ 0x8119449 in store_one_arg (arg=0x8047164, argblock=0x0, may_be_alloca=0,
ÃÂ ÃÂ ÃÂ variable_size=0, reg_parm_stack_space=0)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/calls.c:3868
#3ÃÂ 0x8116d92 in expand_call (exp=0xbfe71b00, target=0xbfeebf20, ignore=0)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/calls.c:2266
#4ÃÂ 0x80fabb0 in expand_expr (exp=0xbfe71b00, target=0xbfeebf20, tmode=SImode,
ÃÂ ÃÂ ÃÂ modifier=EXPAND_NORMAL) at ../../egcs-19991228/gcc/expr.c:7020
#5ÃÂ 0x80c66de in expand_return (retval=0xbfe71b40)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/stmt.c:3052
#6ÃÂ 0x86ca69d in c_expand_return (retval=0xbfe71b00)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/c-typeck.c:6685
#7ÃÂ 0x8696aa3 in yyparse () at ../../egcs-19991228/gcc/c-parse.c:1880
#8ÃÂ 0x804c85b in compile_file (name=0xbff61398 "lex.i")
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/toplev.c:2383
#9ÃÂ 0x80516e7 in main (argc=14, argv=0x8047ccc)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/toplev.c:4791
#10 0x8049121 in _start ()
(gdb) info break
Num TypeÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ Disp Enb AddressÃÂ ÃÂ ÃÂ What
4ÃÂ ÃÂ breakpointÃÂ ÃÂ ÃÂ ÃÂ keep yÃÂ ÃÂ 0x0804a7e2 in fatal
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/diagnostic.c:802
5ÃÂ ÃÂ breakpointÃÂ ÃÂ ÃÂ ÃÂ keep yÃÂ ÃÂ 0x08062c40 in decl_function_context
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/tree.c:4853
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ breakpoint already hit 4 times
(gdb) dele 5
(gdb) c
Continuing.
../../../egcs-19991228/gcc/ch/lex.c: In function `handle_name':
../../../egcs-19991228/gcc/ch/lex.c:665: Tree check: expected class 'd', have 't' (enumeral_type)
Breakpoint 4, fatal (
ÃÂ ÃÂ ÃÂ msgid=0x86ec540 "Internal compiler error in `%s', at %s:%d\nPlease submit a full bug report.\nSee <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.") at ../../egcs-19991228/gcc/diagnostic.c:802
802ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ VA_START (ap, msgid);
(gdb) up 1
#1ÃÂ 0x8162703 in fancy_abort (file=0x86e2b40 "../../egcs-19991228/gcc/tree.c",
ÃÂ ÃÂ ÃÂ line=4853, function=0x86e3b7f "decl_function_context")
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/rtl.c:1255
1255ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ fatal (
(gdb) l
1250ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ int line;
1251ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ const char *function;
1252ÃÂ ÃÂ ÃÂ {
1253ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ if (function == NULL)
1254ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ function = "?";
1255ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ fatal (
1256ÃÂ ÃÂ ÃÂ "Internal compiler error in `%s', at %s:%d\n\
1257ÃÂ ÃÂ ÃÂ Please submit a full bug report.\n\
1258ÃÂ ÃÂ ÃÂ See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > \
1259ÃÂ ÃÂ ÃÂ for instructions.",
(gdb) bt
#0ÃÂ fatal (
ÃÂ ÃÂ ÃÂ msgid=0x86ec540 "Internal compiler error in `%s', at %s:%d\nPlease submit a full bug report.\nSee <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.") at ../../egcs-19991228/gcc/diagnostic.c:802
#1ÃÂ 0x8162703 in fancy_abort (file=0x86e2b40 "../../egcs-19991228/gcc/tree.c",
ÃÂ ÃÂ ÃÂ line=4853, function=0x86e3b7f "decl_function_context")
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/rtl.c:1255
#2ÃÂ 0x8063be0 in tree_class_check_failed (node=0xbfa99380, cl=100 'd',
ÃÂ ÃÂ ÃÂ file=0x86e2b40 "../../egcs-19991228/gcc/tree.c", line=4853,
ÃÂ ÃÂ ÃÂ function=0x86e3b7f "decl_function_context")
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/tree.c:5253
#3ÃÂ 0x8062c76 in decl_function_context (decl=0xbfa99380)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/tree.c:4853
#4ÃÂ 0x81cdbee in add_abstract_origin_attribute ()
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/dwarf2out.c:7511
#5ÃÂ 0x81c795d in gen_inlined_enumeration_type_die (type=0xbfa99380,
ÃÂ ÃÂ ÃÂ context_die=0x87f4f10) at ../../egcs-19991228/gcc/dwarf2out.c:7948
#6ÃÂ 0x81cad8e in gen_tagged_type_instantiation_die (type=0xbfa99380,
ÃÂ ÃÂ ÃÂ context_die=0x87f4f10) at ../../egcs-19991228/gcc/dwarf2out.c:9223
#7ÃÂ 0x81cb60b in gen_decl_die (decl=0xbf726000, context_die=0x87f4f10)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/dwarf2out.c:9466
#8ÃÂ 0x81cb1da in decls_for_scope (stmt=0xbf72a540, context_die=0x87f4f10,
ÃÂ ÃÂ ÃÂ depth=3) at ../../egcs-19991228/gcc/dwarf2out.c:9361
#9ÃÂ 0x81caf9e in gen_block_die (stmt=0xbf72a540, context_die=0x87f4f10,
ÃÂ ÃÂ ÃÂ depth=3) at ../../egcs-19991228/gcc/dwarf2out.c:9320
#10 0x81cb23a in decls_for_scope (stmt=0xbf72a520, context_die=0x87f4f10,
ÃÂ ÃÂ ÃÂ depth=2) at ../../egcs-19991228/gcc/dwarf2out.c:9369
#11 0x81c9708 in gen_inlined_subroutine_die (stmt=0xbf72a520,
ÃÂ ÃÂ ÃÂ context_die=0x879cc20, depth=2) at ../../egcs-19991228/gcc/dwarf2out.c:8670
#12 0x81caf74 in gen_block_die (stmt=0xbf72a520, context_die=0x879cc20,
ÃÂ ÃÂ ÃÂ depth=2) at ../../egcs-19991228/gcc/dwarf2out.c:9315
#13 0x81cb23a in decls_for_scope (stmt=0xbf6c1720, context_die=0x879cc20,
ÃÂ ÃÂ ÃÂ depth=1) at ../../egcs-19991228/gcc/dwarf2out.c:9369
#14 0x81caf9e in gen_block_die (stmt=0xbf6c1720, context_die=0x879cc20,
ÃÂ ÃÂ ÃÂ depth=1) at ../../egcs-19991228/gcc/dwarf2out.c:9320
#15 0x81cb23a in decls_for_scope (stmt=0xbf6c1740, context_die=0x879cc20,
ÃÂ ÃÂ ÃÂ depth=0) at ../../egcs-19991228/gcc/dwarf2out.c:9369
#16 0x81c8d8c in gen_subprogram_die (decl=0xbf916a00, context_die=0x8763df8)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/dwarf2out.c:8486
#17 0x81cb4c5 in gen_decl_die (decl=0xbf916a00, context_die=0x8763df8)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/dwarf2out.c:9448
#18 0x81cbb62 in dwarf2out_decl (decl=0xbf916a00)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/dwarf2out.c:9677
#19 0x804f8a0 in rest_of_compilation (decl=0xbf916a00)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/toplev.c:3657
#20 0x86b37b4 in finish_function (nested=0)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/c-decl.c:6721
#21 0x8691fd6 in yyparse () at ../../egcs-19991228/gcc/c-parse.c:314
#22 0x804c85b in compile_file (name=0xbff61398 "lex.i")
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/toplev.c:2383
#23 0x80516e7 in main (argc=14, argv=0x8047ccc)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/toplev.c:4791
#24 0x8049121 in _start ()
(gdb) up 1
#2ÃÂ 0x8063be0 in tree_class_check_failed (node=0xbfa99380, cl=100 'd',
ÃÂ ÃÂ ÃÂ file=0x86e2b40 "../../egcs-19991228/gcc/tree.c", line=4853,
ÃÂ ÃÂ ÃÂ function=0x86e3b7f "decl_function_context")
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/tree.c:5253
5253ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ fancy_abort (file, line, function);
(gdb) l
5248ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ const char *function;
5249ÃÂ ÃÂ ÃÂ {
5250ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ error ("Tree check: expected class '%c', have '%c' (%s)",
5251ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ cl, TREE_CODE_CLASS (TREE_CODE (node)),
5252ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ tree_code_name[TREE_CODE (node)]);
5253ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ fancy_abort (file, line, function);
5254ÃÂ ÃÂ ÃÂ }
5255ÃÂ ÃÂ ÃÂ
5256ÃÂ ÃÂ ÃÂ #endif /* ENABLE_TREE_CHECKING */
5257ÃÂ ÃÂ ÃÂ
(gdb) l 5240
5235ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ error ("Tree check: expected %s, have %s",
5236ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ tree_code_name[code], tree_code_name[TREE_CODE (node)]);
5237ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ fancy_abort (file, line, function);
5238ÃÂ ÃÂ ÃÂ }
5239ÃÂ ÃÂ ÃÂ
5240ÃÂ ÃÂ ÃÂ /* Similar to above, except that we check for a class of tree
5241ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ code, given in CL.ÃÂ */
5242ÃÂ ÃÂ ÃÂ void
5243ÃÂ ÃÂ ÃÂ tree_class_check_failed (node, cl, file, line, function)
5244ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ const tree node;
(gdb) up 1
#3ÃÂ 0x8062c76 in decl_function_context (decl=0xbfa99380)
ÃÂ ÃÂ ÃÂ at ../../egcs-19991228/gcc/tree.c:4853
4853ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ context = DECL_CONTEXT (decl);
(gdb) l
4848ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ and use something else for the "virtual context".ÃÂ */
4849ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ else if (TREE_CODE (decl) == FUNCTION_DECL && DECL_VINDEX (decl))
4850ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ context = TYPE_MAIN_VARIANT
4851ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ (TREE_TYPE (TREE_VALUE (TYPE_ARG_TYPES (TREE_TYPE (decl)))));
4852ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ else
4853ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ context = DECL_CONTEXT (decl);
4854ÃÂ ÃÂ ÃÂ
4855ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ while (context && TREE_CODE (context) != FUNCTION_DECL)
4856ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ {
4857ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ if (TREE_CODE (context) == BLOCK)
(gdb) call debug_tree(decl)
ÃÂ <enumeral_type bfa99380
ÃÂ ÃÂ ÃÂ unsigned asm_written type_0 SI
ÃÂ ÃÂ ÃÂ size <integer_cst bff77560 type <integer_type bff73580 unsigned int> constant permanent 32>
ÃÂ ÃÂ ÃÂ align 32 symtab 142561296 alias set -1 precision 32
ÃÂ ÃÂ ÃÂ min <integer_cst bfa9dbc0 type <integer_type bff75400 int> constant 2>
ÃÂ ÃÂ ÃÂ max <integer_cst bfa9dd40 type <integer_type bff75400 int> constant 2821>
ÃÂ ÃÂ ÃÂ values <tree_list bfa9dba0
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ purpose <identifier_node bfadbfc0 TOTAL_KEYWORDS
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ value <integer_cst bfa9db40 constant 300>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ chain <tree_list bfa9dc20
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ purpose <identifier_node bfa97000 MIN_WORD_LENGTH
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent> value <integer_cst bfa9dbc0 2>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ chain <tree_list bfa9dca0
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ purpose <identifier_node bfa97040 MAX_WORD_LENGTH
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ value <integer_cst bfa9dc40 constant 30>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ chain <tree_list bfa9dd20
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ purpose <identifier_node bfa97080 MIN_HASH_VALUE
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ value <integer_cst bfa9dcc0 constant 7>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ chain <tree_list bfa9dda0
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ purpose <identifier_node bfa970c0 MAX_HASH_VALUE
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent> value <integer_cst bfa9dd40 2821>>>>>> context <function_decl bfad7900 in_word_set>
ÃÂ ÃÂ ÃÂ chain <type_decl bfa99400>>
(gdb)
ÃÂ <enumeral_type bfa99380
ÃÂ ÃÂ ÃÂ unsigned asm_written type_0 SI
ÃÂ ÃÂ ÃÂ size <integer_cst bff77560 type <integer_type bff73580 unsigned int> constant permanent 32>
ÃÂ ÃÂ ÃÂ align 32 symtab 142561296 alias set -1 precision 32
ÃÂ ÃÂ ÃÂ min <integer_cst bfa9dbc0 type <integer_type bff75400 int> constant 2>
ÃÂ ÃÂ ÃÂ max <integer_cst bfa9dd40 type <integer_type bff75400 int> constant 2821>
ÃÂ ÃÂ ÃÂ values <tree_list bfa9dba0
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ purpose <identifier_node bfadbfc0 TOTAL_KEYWORDS
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ value <integer_cst bfa9db40 constant 300>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ chain <tree_list bfa9dc20
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ purpose <identifier_node bfa97000 MIN_WORD_LENGTH
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent> value <integer_cst bfa9dbc0 2>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ chain <tree_list bfa9dca0
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ purpose <identifier_node bfa97040 MAX_WORD_LENGTH
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ value <integer_cst bfa9dc40 constant 30>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ chain <tree_list bfa9dd20
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ purpose <identifier_node bfa97080 MIN_HASH_VALUE
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ value <integer_cst bfa9dcc0 constant 7>
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ chain <tree_list bfa9dda0
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ purpose <identifier_node bfa970c0 MAX_HASH_VALUE
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ permanent> value <integer_cst bfa9dd40 2821>>>>>> context <function_decl bfad7900 in_word_set>
ÃÂ ÃÂ ÃÂ chain <type_decl bfa99400>>
(gdb) call debug_tree(context)
ÃÂ <error_mark 20>
(gdb) c
Continuing.
../../../egcs-19991228/gcc/ch/lex.c:665: Internal compiler error in `decl_function_context', at tree.c:4853
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.
Program exited with code 041.
More information about the Gcc-bugs
mailing list