ICE profiledbootstrapping on ia64

Richard Guenther rguenth@tat.physik.uni-tuebingen.de
Fri Jun 4 08:52:00 GMT 2004


Hi!

I think it's been broken for a long time, but I'll ping again for it:

stage1/xgcc -Bstage1/
-B/home/rguenth/ia64/gcc3.5-040604/ia64-unknown-linux-gnu/bin/ -c   -g -O2
-fprofile-generate -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition -Werror    -DHAVE_CONFIG_H -DGENERATOR_FILE    -I.
-I. -I/scratch/natasa/rguenth/src/gcc-3.5/gcc
-I/scratch/natasa/rguenth/src/gcc-3.5/gcc/.
-I/scratch/natasa/rguenth/src/gcc-3.5/gcc/../include
-I/scratch/natasa/rguenth/src/gcc-3.5/gcc/../libcpp/include
-I/scratch/natasa/rguenth/src/gcc-3.5/gcc/../libbanshee/libcompat
-I/scratch/natasa/rguenth/src/gcc-3.5/gcc/../libbanshee
-I/scratch/natasa/rguenth/src/gcc-3.5/gcc/../libbanshee/points-to
/scratch/natasa/rguenth/src/gcc-3.5/gcc/genmodes.c -o genmodes.o
/scratch/natasa/rguenth/src/gcc-3.5/gcc/genmodes.c: In function
`calc_wider_mode':
/scratch/natasa/rguenth/src/gcc-3.5/gcc/genmodes.c:746: internal compiler
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

and gdb says:

Program received signal SIGSEGV, Segmentation fault.
bitmap_operation (to=0x60000fffffffa780, from1=0x600000000015d6f0,
from2=0x0, operation=BITMAP_XOR)
    at /scratch/natasa/rguenth/src/gcc-3.5/gcc/bitmap.c:515
515	  bitmap_element *from2_ptr = from2->first;
(gdb) bt
#0  bitmap_operation (to=0x60000fffffffa780, from1=0x600000000015d6f0,
from2=0x0, operation=BITMAP_XOR)
    at /scratch/natasa/rguenth/src/gcc-3.5/gcc/bitmap.c:515
#1  0x40000000005e3290 in init_propagate_block_info
(bb=0x2000000000b7f2c0, live=0x600000000015df78, local_set=0x0,
cond_local_set=0x0,
    flags=0) at /scratch/natasa/rguenth/src/gcc-3.5/gcc/flow.c:1861
#2  0x40000000005e50e0 in propagate_block (bb=0x2000000000b7f2c0,
live=0x600000000015df78, local_set=0x0, cond_local_set=0x0, flags=0)
    at /scratch/natasa/rguenth/src/gcc-3.5/gcc/flow.c:2009
#3  0x40000000003c0ce0 in rtl_split_block (bb=0x2000000000b7f100,
insnp=0x0) at /scratch/natasa/rguenth/src/gcc-3.5/gcc/cfgrtl.c:507
#4  0x40000000003d45b0 in cfg_layout_split_block (bb=0x2000000000b7f100,
insnp=0x0) at /scratch/natasa/rguenth/src/gcc-3.5/gcc/cfgrtl.c:2460
#5  0x4000000000c00f70 in split_block (bb=0x2000000000b7f100, i=0x0) at
/scratch/natasa/rguenth/src/gcc-3.5/gcc/cfghooks.c:310
#6  0x4000000000c011d0 in split_block_after_labels (bb=0x2000000000b7f100)
at /scratch/natasa/rguenth/src/gcc-3.5/gcc/cfghooks.c:332
#7  0x4000000000c02ed0 in make_forwarder_block (bb=0x2000000000b7f100,
    redirect_edge_p=@0x400000000115f520: 0x40000000003a0c20
<mfb_keep_just>,
    new_bb_cbk=@0x4000000001161230: 0x40000000003a0b10
<update_latch_info>) at
/scratch/natasa/rguenth/src/gcc-3.5/gcc/cfghooks.c:552
#8  0x40000000003a1c70 in canonicalize_loop_headers () at
/scratch/natasa/rguenth/src/gcc-3.5/gcc/cfgloop.c:675
#9  0x40000000003a2300 in flow_loops_find (loops=0x60000000001758d0,
flags=1) at /scratch/natasa/rguenth/src/gcc-3.5/gcc/cfgloop.c:736
#10 0x40000000003bd120 in loop_optimizer_init (dumpfile=0x0) at
/scratch/natasa/rguenth/src/gcc-3.5/gcc/loop-init.c:47
#11 0x4000000000c1df90 in rest_of_handle_loop2 (decl=0x200000000081e220,
insns=0x2000000000b05400)
    at /scratch/natasa/rguenth/src/gcc-3.5/gcc/passes.c:1311
#12 0x4000000000c201c0 in rest_of_compilation (decl=0x200000000081e220) at
/scratch/natasa/rguenth/src/gcc-3.5/gcc/passes.c:1609
#13 0x40000000001ba3e0 in tree_rest_of_compilation
(fndecl=0x200000000081e220, nested_p=false)
    at /scratch/natasa/rguenth/src/gcc-3.5/gcc/tree-optimize.c:590
#14 0x400000000005ef20 in c_expand_body (fndecl=0x200000000081e220) at
/scratch/natasa/rguenth/src/gcc-3.5/gcc/c-decl.c:6374
#15 0x4000000000c89c10 in cgraph_expand_function (node=0x200000000083d880)
at /scratch/natasa/rguenth/src/gcc-3.5/gcc/cgraphunit.c:794
#16 0x4000000000c92de0 in cgraph_expand_all_functions () at
/scratch/natasa/rguenth/src/gcc-3.5/gcc/cgraphunit.c:1747
#17 0x4000000000c93900 in cgraph_optimize () at
/scratch/natasa/rguenth/src/gcc-3.5/gcc/cgraphunit.c:1837
#18 0x400000000014aea0 in c_objc_common_finish_file () at
/scratch/natasa/rguenth/src/gcc-3.5/gcc/c-objc-common.c:240
#19 0x4000000000022c30 in finish_file () at
/scratch/natasa/rguenth/src/gcc-3.5/gcc/c-lang.c:213
#20 0x4000000000124c90 in c_common_parse_file (set_yydebug=0) at
/scratch/natasa/rguenth/src/gcc-3.5/gcc/c-opts.c:1240
#21 0x4000000000b757c0 in compile_file () at
/scratch/natasa/rguenth/src/gcc-3.5/gcc/toplev.c:1654
#22 0x4000000000b7c890 in do_compile () at
/scratch/natasa/rguenth/src/gcc-3.5/gcc/toplev.c:2700
#23 0x4000000000b7ca20 in toplev_main (argc=41, argv=0x60000fffffffb528)
at /scratch/natasa/rguenth/src/gcc-3.5/gcc/toplev.c:2732
#24 0x4000000000171860 in main (argc=41, argv=0x60000fffffffb528) at
/scratch/natasa/rguenth/src/gcc-3.5/gcc/main.c:35

how can bb_false->global_live_at_start be 0 at init_propagate_block_info?

(gdb) up
#1  0x40000000005e3290 in init_propagate_block_info
(bb=0x2000000000b7f2c0, live=0x600000000015df78, local_set=0x0,
cond_local_set=0x0,
    flags=0) at /scratch/natasa/rguenth/src/gcc-3.5/gcc/flow.c:1861
1861	      if (bitmap_operation (diff, bb_true->global_live_at_start,
(gdb) call debug_bb(bb)
;; basic block 25, loop depth 0, count 0
;; prev block 23, next block 24
;; pred:
;; succ:       24 [5.0%]  (fallthru,loop_exit) 6 [95.0%]
;; Registers live at start:  0 [ap] 1 [r1] 12 [r12] 320 [b0] 328 [sfp] 331
[ar.pfs] 344 375 431
(note 326 323 174 25 [bb 25] NOTE_INSN_BASIC_BLOCK)
(note 174 326 175 25
("/scratch/natasa/rguenth/src/gcc-3.5/gcc/genmodes.c") 708)
(insn 175 174 176 25
/scratch/natasa/rguenth/src/gcc-3.5/gcc/genmodes.c:708 (set (reg/v:SI 344
[ c ])
        (plus:SI (reg/v:SI 344 [ c ])
            (const_int 1 [0x1]))) 90 {addsi3} (nil)
    (nil))
(insn 176 175 177 25
/scratch/natasa/rguenth/src/gcc-3.5/gcc/genmodes.c:708 (set (reg:BI 426)
        (leu:BI (reg/v:SI 344 [ c ])
            (const_int 8 [0x8]))) 212 {*cmpsi_normal} (nil)
    (nil))
(jump_insn 177 176 325 25
/scratch/natasa/rguenth/src/gcc-3.5/gcc/genmodes.c:708 (set (pc)
        (if_then_else (ne (reg:BI 426)
                (const_int 0 [0x0]))
            (label_ref 48)
            (pc))) 221 {*br_true} (nil)
    (expr_list:REG_BR_PROB (const_int 9500 [0x251c])
        (nil)))
;; Registers live at end:  0 [ap] 1 [r1] 12 [r12] 320 [b0] 328 [sfp] 331
[ar.pfs] 344 375 431
(gdb) print bb_true
$1 = 0x2000000000b7d5e0
(gdb) print bb_false
$2 = 0x2000000000b7f1e0
(gdb) print *bb_false
$3 = {head_ = 0x2000000000b4f740, end_ = 0x2000000000b4f740, stmt_list =
0x0, pred = 0x2000000000b94820, succ = 0x2000000000b95c20,
  local_set = 0x0, cond_local_set = 0x0, global_live_at_start = 0x0,
global_live_at_end = 0x0, aux = 0x60000000000ea9c8, index = 24,
  prev_bb = 0x2000000000b7f2c0, next_bb = 0x2000000000b7cfc0, loop_depth =
0, loop_father = 0x0, dom = {0x0, 0x0}, count = 0, frequency = 69,
  flags = 2, partition = 0, rbi = 0x60000000001c5aa8, tree_annotations =
0x0}

it seems it really is.

Please, someone look into this.

Thanks,
Richard.

--
Richard Guenther <richard dot guenther at uni-tuebingen dot de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/



More information about the Gcc mailing list