gcc-bugs@gcc.gnu.org

Toshi Morita tm2@best.com
Thu Apr 12 13:23:00 GMT 2001


Jan Hubicka wrote:

...
> Can you please send me testcase I can drop into crosscompiler? I am still
> puzzled about how the emit_single_push_insn can be called before
> emit_move_insn_1 and dupplicate the work.
> 
> Honza
> 

The cross-compiler IS the testcase.

The ICE occurs when compiling unwind-sjlj.c:

/home/tm/gcc-build-h8300/gcc/xgcc -B/home/tm/gcc-build-h8300/gcc/ -B/usr/local/h8300-coff/bin/ -B/usr/local/h8300-coff/lib/ -isystem /usr/local/h8300-coff/include -O2  -DCROSS_COMPILE -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -DDF=SF -DDI=SI -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include -fexceptions -c ../../gcc/gcc/unwind-sjlj.c -o libgcc/./unwind-sjlj.o
../../gcc/gcc/unwind-sjlj.c: In function `_Unwind_GetRegionStart':
../../gcc/gcc/unwind-sjlj.c:200: warning: unused parameter `context'
In file included from ../../gcc/gcc/unwind-sjlj.c:257:
../../gcc/gcc/unwind.inc: In function `_Unwind_RaiseException_Phase2':
../../gcc/gcc/unwind.inc:67: warning: implicit declaration of function `abort'
../../gcc/gcc/unwind.inc:57: Internal compiler error in expand_call, at calls.c:3081

Here's a stack backtrace:

(xxgdb) break calls.c:3081
Breakpoint 1 at 0x809aa1a: file ../../gcc/gcc/calls.c, line 3081.
(xxgdb) run
During symbol reading, register number 136361703 too large (max 32) in symbol buf.
 __gthread_active_p __gthread_mutex_lock __gthread_mutex_trylock __gthread_mutex_unlock _Unwind_SjLj_Register _Unwind_SjLj_GetContext _Unwind_SjLj_SetContext _Unwind_SjLj_Unregister _Unwind_GetGR _Unwind_SetGR _Unwind_GetIP _Unwind_SetIP _Unwind_GetLanguageSpecificData _Unwind_GetRegionStart uw_frame_state_for uw_update_context uw_init_context uw_identify_context _Unwind_RaiseException_Phase2
Breakpoint 1, expand_call (exp=0x401ee320, target=0x401e8c60, ignore=0) at ../../gcc/gcc/calls.c:3081
(xxgdb) bt
#0  expand_call (exp=0x401ee320, target=0x401e8c60, ignore=0) at ../../gcc/gcc/calls.c:3081
#1  0x80ca971 in expand_expr (exp=0x401ee320, target=0x401e8c60, tmode=HImode, modifier=EXPAND_NORMAL) at ../../gcc/gcc/expr.c:7379
#2  0x80c134e in store_expr (exp=0x401ee320, target=0x401e8c60, want_value=0) at ../../gcc/gcc/expr.c:4147
#3  0x80c0dc6 in expand_assignment (to=0x401ed5b0, from=0x401ee320, want_value=0, suggest_reg=1) at ../../gcc/gcc/expr.c:3962
#4  0x80d0e5b in expand_expr (exp=0x401ee340, target=0x0, tmode=VOIDmode, modifier=EXPAND_NORMAL) at ../../gcc/gcc/expr.c:8521
#5  0x8154140 in expand_expr_stmt (exp=0x401ee340) at ../../gcc/gcc/stmt.c:1943
#6  0x807d804 in genrtl_expr_stmt (expr=0x401ee340) at ../../gcc/gcc/c-semantics.c:389
#7  0x807ebbb in expand_stmt (t=0x401ead34) at ../../gcc/gcc/c-semantics.c:793
#8  0x807e979 in genrtl_compound_stmt (t=0x401ead20) at ../../gcc/gcc/c-semantics.c:716
#9  0x807ec21 in expand_stmt (t=0x401ead20) at ../../gcc/gcc/c-semantics.c:817
#10 0x807db56 in genrtl_if_stmt (t=0x401ee280) at ../../gcc/gcc/c-semantics.c:451
#11 0x807ec10 in expand_stmt (t=0x401eaa8c) at ../../gcc/gcc/c-semantics.c:813
#12 0x807e979 in genrtl_compound_stmt (t=0x401eaa78) at ../../gcc/gcc/c-semantics.c:716
#13 0x807ec21 in expand_stmt (t=0x401eaa78) at ../../gcc/gcc/c-semantics.c:817
#14 0x807dd89 in genrtl_while_stmt (t=0x401ee060) at ../../gcc/gcc/c-semantics.c:477
#15 0x807ebee in expand_stmt (t=0x401eaa00) at ../../gcc/gcc/c-semantics.c:805
#16 0x807e979 in genrtl_compound_stmt (t=0x401ea938) at ../../gcc/gcc/c-semantics.c:716
#17 0x807ec21 in expand_stmt (t=0x401ea938) at ../../gcc/gcc/c-semantics.c:817
#18 0x805f7ab in c_expand_body (fndecl=0x401ed138, nested_p=0) at ../../gcc/gcc/c-decl.c:6728
#19 0x805f629 in finish_function (nested=0) at ../../gcc/gcc/c-decl.c:6672
#20 0x804a000 in yyparse_1 () at c-parse.y:324
#21 0x804ea46 in yyparse () at ../../gcc/gcc/c-lex.c:158
#22 0x8162402 in compile_file (name=0xbffffb05 "bug.i") at ../../gcc/gcc/toplev.c:2375
#23 0x8165cff in toplev_main (argc=3, argv=0xbffff9a4) at ../../gcc/gcc/toplev.c:4969
#24 0x808e232 in main (argc=3, argv=0xbffff9a4) at ../../gcc/gcc/main.c:34
#25 0x4003ab5c in __libc_start_main (main=0x808e21c <main>, argc=3, ubp_av=0xbffff9a4, init=0x8049020 <_init>, fini=0x81cf0c4 <_fini>, rtld_fini=0x4000d634 <_dl_fini>, stack_end=0xbffff99c) at ../sysdeps/generic/libc-start.c:129
(xxgdb) print cfun->expr->x_stack_pointer_delta
$1 = 20
(xxgdb) print cfun->expr->x_pending_stack_adjust
$2 = 12


Toshi



More information about the Gcc-bugs mailing list