Georg-Johann Lay schrieb: > Andreas Krebbel schrieb: >> On 03/22/2011 06:48 PM, Richard Henderson wrote: >> >>> Ok. Watch out for other target problems this week. > > libgcc fails to build for avr (SVN 171446) > > ../../../../../gcc.gnu.org/trunk/libgcc/../gcc/libgcc2.c: In function > '__negdi2': > ../../../../../gcc.gnu.org/trunk/libgcc/../gcc/libgcc2.c:68:17: > internal compiler error: in maybe_gen_insn, at optabs.c:7123
p.s.: some additional info (gdb) set args -quiet -v -iprefix /local/gnu/build/gcc-4.6-avr/gcc/../lib/gcc/avr/4.7.0/ -isystem /mnt/nfs/home/georg/gnu/build/gcc-4.6-avr/gcc/include -isystem /mnt/nfs/home/georg/gnu/build/gcc-4.6-avr/gcc/include-fixed libgcc2-negdi2.c -quiet -dumpbase libgcc2-negdi2.c -auxbase libgcc2-negdi2 -Os -version -o libgcc2-negdi2.s (gdb) cd ~/test (gdb) r GNU C (GCC) version 4.7.0 20110325 (experimental) (avr) compiled by GNU C version 4.3.2 [gcc-4_3-branch revision 141291], GMP version 5.0.1, MPFR version 3.0.0-p8, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Breakpoint 1, fancy_abort (file=0x87ee230 "../../../gcc.gnu.org/trunk/gcc/optabs.c", line=7123, function=0x87ee585 "maybe_gen_insn") at ../../../gcc.gnu.org/trunk/gcc/diagnostic.c:893 (gdb) bt #0 fancy_abort (file=0x87ee230 "../../../gcc.gnu.org/trunk/gcc/optabs.c", line=7123, function=0x87ee585 "maybe_gen_insn") at ../../../gcc.gnu.org/trunk/gcc/diagnostic.c:893 #1 0x0837a86a in maybe_gen_insn (icode=CODE_FOR_setmemhi, nops=6, ops=0xbfffdfcc) at ../../../gcc.gnu.org/trunk/gcc/optabs.c:7123 #2 0x0837a91f in maybe_expand_insn (icode=CODE_FOR_setmemhi, nops=6, ops=0xbfffdfcc) at ../../../gcc.gnu.org/trunk/gcc/optabs.c:7155 #3 0x08241122 in set_storage_via_setmem (object=0xb7dfcc60, size=0xb7d682f8, val=0xb7d682b8, align=<value optimized out>, expected_align=<value optimized out>, expected_size=-1) at ../../../gcc.gnu.org/trunk/gcc/expr.c:2730 #4 0x082567d5 in clear_storage_hints (object=0xb7dfcc60, size=0xb7d682f8, method=BLOCK_OP_NORMAL, expected_align=0, expected_size=-1) at ../../../gcc.gnu.org/trunk/gcc/expr.c:2575 #5 0x0825691f in clear_storage (object=0xb7dfcc60, size=0xb7d682f8, method=BLOCK_OP_NORMAL) at ../../../gcc.gnu.org/trunk/gcc/expr.c:2590 #6 0x0825aa83 in store_constructor (exp=0xb7dfaca8, target=0xb7dfcc60, cleared=0, size=8) at ../../../gcc.gnu.org/trunk/gcc/expr.c:5188 #7 0x0825b6fe in expand_constructor (exp=0xb7dfaca8, target=0xb7dfcc60, modifier=EXPAND_NORMAL, avoid_temp_mem=0 '\0') at ../../../gcc.gnu.org/trunk/gcc/expr.c:7092 #8 0x0824dade in expand_expr_real_1 (exp=0xb7dfaca8, target=0xb7dfcc60, tmode=BLKmode, modifier=EXPAND_NORMAL, alt_rtl=0xbfffe35c) at ../../../gcc.gnu.org/trunk/gcc/expr.c:8655 #9 0x08245d52 in store_expr (exp=0xb7dfaca8, target=0xb7dfcc60, call_param_p=0, nontemporal=0 '\0') at ../../../gcc.gnu.org/trunk/gcc/expr.c:4645 #10 0x08257949 in expand_assignment (to=0xb7e2a1e0, from=0xb7dfaca8, nontemporal=5 '\005') at ../../../gcc.gnu.org/trunk/gcc/expr.c:4433 #11 0x081a61aa in expand_gimple_stmt (stmt=0xb7e237e0) at ../../../gcc.gnu.org/trunk/gcc/cfgexpand.c:1971 #12 0x081a7200 in expand_gimple_basic_block (bb=0xb7ddf3c0) at ../../../gcc.gnu.org/trunk/gcc/cfgexpand.c:3645 #13 0x081a8a65 in gimple_expand_cfg () at ../../../gcc.gnu.org/trunk/gcc/cfgexpand.c:4128 #14 0x08395334 in execute_one_pass (pass=0x88742e0) at ../../../gcc.gnu.org/trunk/gcc/passes.c:1554 #15 0x0839562d in execute_pass_list (pass=0x88742e0) at ../../../gcc.gnu.org/trunk/gcc/passes.c:1609 #16 0x08475baa in tree_rest_of_compilation (fndecl=0xb7e21180) at ../../../gcc.gnu.org/trunk/gcc/tree-optimize.c:422 #17 0x08615bc6 in cgraph_expand_function (node=0xb7e2c000) at ../../../gcc.gnu.org/trunk/gcc/cgraphunit.c:1576 #18 0x08618c59 in cgraph_optimize () at ../../../gcc.gnu.org/trunk/gcc/cgraphunit.c:1635 #19 0x0861915d in cgraph_finalize_compilation_unit () at ../../../gcc.gnu.org/trunk/gcc/cgraphunit.c:1096 #20 0x080b6590 in c_write_global_declarations () at ../../../gcc.gnu.org/trunk/gcc/c-decl.c:9879 #21 0x08411fae in toplev_main (argc=19, argv=0xbfffe874) at ../../../gcc.gnu.org/trunk/gcc/toplev.c:591 #22 0x08152372 in main (argc=Cannot access memory at address 0x1 ) at ../../../gcc.gnu.org/trunk/gcc/main.c:36 (gdb) frame 1 #1 0x0837a86a in maybe_gen_insn (icode=CODE_FOR_setmemhi, nops=6, ops=0xbfffdfcc) at ../../../gcc.gnu.org/trunk/gcc/optabs.c:7123 (gdb) p nops $1 = 6 (gdb) p insn_data[(int) icode].n_operands $2 = 5 '\005' (gdb) p *ops $3 = {type = EXPAND_FIXED, unsigned_p = 0, unused = 0, mode = VOIDmode, value = 0xb7dfcc60} (gdb) p ops -> value $4 = (rtx) 0xb7dfcc60 (gdb) pr (mem/s/c:BLK (reg/f:HI 37 virtual-stack-vars) [2 w+0 S8 A8]) (gdb) p icode $5 = CODE_FOR_setmemhi (gdb) Quit (gdb)