This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/11745] Bootstrap fails when compiling insn-attrtab.c with stage1/xgcc
- From: "tobias dot schlueter at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2003 14:14:04 -0000
- Subject: [Bug bootstrap/11745] Bootstrap fails when compiling insn-attrtab.c with stage1/xgcc
- References: <20030731140827.11745.tobias.schlueter@web.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11745
------- Additional Comments From tobias dot schlueter at web dot de 2003-07-31 14:14 -------
Ok, I just ran it in gdb. It looks like infinite recursion is happening in
walk_tree(). The lower end of the call stack looks like this:
#8132 0x006a659c in walk_tree (tp=0x10ffe23c, func=0x6d92fe <copy_if_shared_r>,
data=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
#8133 0x006a659c in walk_tree (tp=0x10ffe07c, func=0x6d92fe <copy_if_shared_r>,
data=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
#8134 0x006a659c in walk_tree (tp=0x10ffe1dc, func=0x6d92fe <copy_if_shared_r>,
data=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
#8135 0x006a659c in walk_tree (tp=0x10faec1c, func=0x6d92fe <copy_if_shared_r>,
data=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
#8136 0x006a659c in walk_tree (tp=0x10faeabc, func=0x6d92fe <copy_if_shared_r>,
data=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
#8137 0x006a659c in walk_tree (tp=0x10fb301c, func=0x6d92fe <copy_if_shared_r>,
data=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
#8138 0x006a659c in walk_tree (tp=0x10ffc594, func=0x6d92fe <copy_if_shared_r>,
data=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
#8139 0x006a659c in walk_tree (tp=0x112d631c, func=0x6d92fe <copy_if_shared_r>,
data=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
#8140 0x006a659c in walk_tree (tp=0x10ff9fdc, func=0x6d92fe <copy_if_shared_r>,
data=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
#8141 0x006a659c in walk_tree (tp=0x10fa8fe4, func=0x6d92fe <copy_if_shared_r>,
data=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
#8142 0x006a659c in walk_tree (tp=0x22eb00, func=0x6d92fe <copy_if_shared_r>, da
ta=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
#8143 0x006d92d9 in unshare_all_trees (t=0x10fa8fc8) at ../../gcc/gcc/gimplify.c
:2622
#8144 0x006cb7b3 in gimplify_body (body_p=0x22eb60, fndecl=0x107da0e0) at ../../
gcc/gcc/gimplify.c:269
#8145 0x006cb70a in gimplify_function_tree (fndecl=0x107da0e0) at ../../gcc/gcc/
gimplify.c:239
#8146 0x004b7b63 in c_genericize (fndecl=0x107da0e0) at ../../gcc/gcc/c-simplify
.c:161
#8147 0x00437230 in finish_function (nested=0, can_defer_p=1) at ../../gcc/gcc/c
-decl.c:6247
#8148 0x0040b206 in yyparse () at c-parse.y:385
#8149 0x00416719 in c_parse_file () at c-parse.y:3022
#8150 0x004864c4 in c_common_parse_file (set_yydebug=0) at ../../gcc/gcc/c-opts.
c:1206
#8151 0x004dd8d1 in compile_file () at ../../gcc/gcc/toplev.c:1793
#8152 0x004e3074 in do_compile () at ../../gcc/gcc/toplev.c:4584
#8153 0x004e3110 in toplev_main (argc=52, argv=0x10021b60) at ../../gcc/gcc/topl
ev.c:4625
#8154 0x004d8f80 in main (argc=52, argv=0x10021b60) at ../../gcc/gcc/main.c:35
Giving up a few times I see gcc's error handlers:
(gdb) up
#1 0x01010101 in _libkernel32_a_iname ()
(gdb) up
#2 0x6101c3e4 in cygwin_internal () from /usr/bin/cygwin1.dll
(gdb) up
#3 0x6101c963 in cygwin_internal () from /usr/bin/cygwin1.dll
(gdb) up
#4 0x610170a1 in cygwin_internal () from /usr/bin/cygwin1.dll
(gdb) up
#5 0x6107e30f in writev () from /usr/bin/cygwin1.dll
(gdb) up
#6 0x6107db0c in write () from /usr/bin/cygwin1.dll
(gdb) up
#7 0x610c6d26 in wmemset () from /usr/bin/cygwin1.dll
(gdb) up
#8 0x610c55da in wmemset () from /usr/bin/cygwin1.dll
(gdb) up
#9 0x610c5978 in wmemset () from /usr/bin/cygwin1.dll
(gdb) up
#10 0x610b3899 in fputs () from /usr/bin/cygwin1.dll
(gdb) up
#11 0x00507775 in output_buffer_to_stream (buffer=0x9d4390) at ../../gcc/gcc/dia
gnostic.c:432
432 fputs (text, output_buffer_attached_stream (buffer));
(gdb) up
#12 0x00508d78 in lhd_print_error_function (context=0x9d4390, file=0x22fdf6 "ins
n-attrtab.c") at ../../gcc/gcc/diagnostic.c:953
953 output_buffer_to_stream (&context->buffer);
(gdb) up
#13 0x00508db5 in diagnostic_report_current_function (context=0x9d4390) at ../..
/gcc/gcc/diagnostic.c:967
967 (*lang_hooks.print_error_function) (context, input_filename);
(gdb) up
#14 0x00508ef3 in default_diagnostic_starter (context=0x9d4390, diagnostic=0x32f
50) at ../../gcc/gcc/diagnostic.c:1002
1002 diagnostic_report_current_function (context);
(gdb) up
#15 0x00508f80 in diagnostic_report_diagnostic (context=0x9d4390, diagnostic=0x3
2f50) at ../../gcc/gcc/diagnostic.c:1028
1028 (*diagnostic_starter (context)) (context, diagnostic);
(gdb) up
#16 0x0050942e in internal_error (msgid=0x4dc7b0 "%s") at ../../gcc/gcc/diagnost
ic.c:1232
1232 report_diagnostic (&diagnostic);
(gdb) up
#17 0x004dc7e8 in crash_signal (signo=11) at ../../gcc/gcc/toplev.c:1371
1371 internal_error ("%s", strsignal (signo));
(gdb) up
#18 0x610149e3 in cygwin_stackdump () from /usr/bin/cygwin1.dll
(gdb) up
#19 0x006a619e in walk_tree (tp=0x10cb2218, func=0x6d939a <mostly_copy_tree_r>,
data=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1463
1463 result = (*func) (tp, &walk_subtrees, data);
(gdb) up
#20 0x006d933a in copy_if_shared_r (tp=0x10cb2218, walk_subtrees=0x331cc, data=0
x0) at ../../gcc/gcc/gimplify.c:2643
2643 walk_tree (tp, mostly_copy_tree_r, NULL, NULL);
(gdb) up
#21 0x006a61b4 in walk_tree (tp=0x10cb2218, func=0x6d92fe <copy_if_shared_r>, da
ta=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1463
1463 result = (*func) (tp, &walk_subtrees, data);
(gdb) up
#22 0x006a659c in walk_tree (tp=0x111aadbc, func=0x6d92fe <copy_if_shared_r>, da
ta=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
1511 WALK_SUBTREE (TREE_OPERAND (*tp, i));
(gdb) up
#23 0x006a659c in walk_tree (tp=0x111aadf8, func=0x6d92fe <copy_if_shared_r>, da
ta=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
1511 WALK_SUBTREE (TREE_OPERAND (*tp, i));
(gdb) up
#24 0x006a659c in walk_tree (tp=0x111aaabc, func=0x6d92fe <copy_if_shared_r>, da
ta=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
1511 WALK_SUBTREE (TREE_OPERAND (*tp, i));
(gdb) up
#25 0x006a659c in walk_tree (tp=0x111aaa9c, func=0x6d92fe <copy_if_shared_r>, da
ta=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
1511 WALK_SUBTREE (TREE_OPERAND (*tp, i));
(gdb) up
#26 0x006a659c in walk_tree (tp=0x111aaa5c, func=0x6d92fe <copy_if_shared_r>, da
ta=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
1511 WALK_SUBTREE (TREE_OPERAND (*tp, i));
(gdb) up
#27 0x006a659c in walk_tree (tp=0x111aaa1c, func=0x6d92fe <copy_if_shared_r>, da
ta=0x0, htab_=0x0) at ../../gcc/gcc/tree-inline.c:1511
1511 WALK_SUBTREE (TREE_OPERAND (*tp, i));
(gdb)
... and so on.