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]

GCC-H8300: build failure


version: CVS
   host: i686-linux
 target: h8300-coff

GCC triggers an abort when buildling. It looks the cross compiler aborts because it detects
a problem with the stack adjusts - they don't add up to zero.

/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:3076
Please submit a full bug report, with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [libgcc/./unwind-sjlj.o] Error 1
make[2]: Leaving directory `/home/tm/gcc-build-h8300/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/tm/gcc-build-h8300/gcc'
make: *** [all-gcc] Error 2
[tm@localhost gcc-build-h8300]$ 

here's the stack backtrace:

(gdb) bt
#0  expand_call (exp=0x401e9320, target=0x401e3c60, ignore=0) at ../../gcc/gcc/calls.c:3076
#1  0x8111c0c in expand_expr (exp=0x401e9320, target=0x401e3c60, tmode=HImode, modifier=EXPAND_NORMAL)
    at ../../gcc/gcc/expr.c:7373
#2  0x8102961 in store_expr (exp=0x401e9320, target=0x401e3c60, want_value=0) at ../../gcc/gcc/expr.c:4147
#3  0x8102226 in expand_assignment (to=0x401e85b0, from=0x401e9320, want_value=0, suggest_reg=1) at ../../gcc/gcc/expr.c:3962
#4  0x811d1f8 in expand_expr (exp=0x401e9340, target=0x0, tmode=VOIDmode, modifier=EXPAND_NORMAL) at ../../gcc/gcc/expr.c:8515
#5  0x81ed803 in expand_expr_stmt (exp=0x401e9340) at ../../gcc/gcc/stmt.c:1943
#6  0x809abde in genrtl_expr_stmt (expr=0x401e9340) at ../../gcc/gcc/c-semantics.c:388
#7  0x809c94c in expand_stmt (t=0x401e5e88) at ../../gcc/gcc/c-semantics.c:792
#8  0x809c63c in genrtl_compound_stmt (t=0x401e5d20) at ../../gcc/gcc/c-semantics.c:715
#9  0x809c9cc in expand_stmt (t=0x401e5d20) at ../../gcc/gcc/c-semantics.c:816
#10 0x809b0fc in genrtl_if_stmt (t=0x401e9280) at ../../gcc/gcc/c-semantics.c:450
#11 0x809c9b4 in expand_stmt (t=0x401e9280) at ../../gcc/gcc/c-semantics.c:812
#12 0x809c63c in genrtl_compound_stmt (t=0x401e5a78) at ../../gcc/gcc/c-semantics.c:715
#13 0x809c9cc in expand_stmt (t=0x401e5a78) at ../../gcc/gcc/c-semantics.c:816
#14 0x809b3ef in genrtl_while_stmt (t=0x401e9060) at ../../gcc/gcc/c-semantics.c:476
#15 0x809c98c in expand_stmt (t=0x401e9060) at ../../gcc/gcc/c-semantics.c:804
#16 0x809c63c in genrtl_compound_stmt (t=0x401e5938) at ../../gcc/gcc/c-semantics.c:715
#17 0x809c9cc in expand_stmt (t=0x401e5938) at ../../gcc/gcc/c-semantics.c:816
#18 0x806c9ce in c_expand_body (fndecl=0x401e8138, nested_p=0) at ../../gcc/gcc/c-decl.c:6728
#19 0x806c766 in finish_function (nested=0) at ../../gcc/gcc/c-decl.c:6672
#20 0x804a564 in yyparse_1 () at c-parse.y:324
#21 0x8052455 in yyparse () at ../../gcc/gcc/c-lex.c:158
#22 0x8204748 in compile_file (name=0x833260f "bug.i") at ../../gcc/gcc/toplev.c:2359
#23 0x8208ff0 in toplev_main (argc=3, argv=0xbffff984) at ../../gcc/gcc/toplev.c:4953
#24 0x80b25e6 in main (argc=3, argv=0xbffff984) at ../../gcc/gcc/main.c:34
#25 0x4003bb5c in __libc_start_main (main=0x80b25d0 <main>, argc=3, ubp_av=0xbffff984, init=0x8049088 <_init>, 
    fini=0x82ac1c4 <_fini>, rtld_fini=0x4000d634 <_dl_fini>, stack_end=0xbffff97c) at ../sysdeps/generic/libc-start.c:129

Toshi


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