http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50609

--- Comment #2 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2011-10-04 
01:50:59 UTC ---
So, at r179480, I get, for lto1 and everything related rebuilt with CFLAGS=-g3:

(gdb) set args -melf -quiet -dumpdir
/tmp/hpautotest-gcc1/cris-elf/gccobj/gcc/testsuite/gcc/ -dumpbase pr23135.x6
-auxbase-strip /tmp/ccJhtPAy.lto.o -O2 -w -version -flto-partition=none
-fresolution=pr23135.res pr23135.o  -o pr23135.s
(gdb) r
Starting program: /tmp/hpautotest-gcc1/cris-elf/gccobj/gcc/lto1 -melf -quiet
-dumpdir /tmp/hpautotest-gcc1/cris-elf/gccobj/gcc/testsuite/gcc/ -dumpbase
pr23135.x6 -auxbase-strip /tmp/ccJhtPAy.lto.o -O2 -w -version
-flto-partition=none -fresolution=pr23135.res pr23135.o  -o pr23135.s
GNU GIMPLE (GCC) version 4.7.0 20111003 (experimental) [trunk revision 179480]
(cris-elf)
        compiled by GNU C version 4.4.3 20100127 (Red Hat 4.4.3-4), GMP version
4.3.0, MPFR version 2.4.1, MPC version 0.8
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU GIMPLE (GCC) version 4.7.0 20111003 (experimental) [trunk revision 179480]
(cris-elf)
        compiled by GNU C version 4.4.3 20100127 (Red Hat 4.4.3-4), GMP version
4.3.0, MPFR version 2.4.1, MPC version 0.8
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096

Program received signal SIGSEGV, Segmentation fault.
0x000000000078bae8 in fold_nonarray_ctor_reference (type=0x7ffff7ece5e8,
ctor=0x7ffff7f8dab0, offset=0, size=32)
    at /tmp/hpautotest-gcc1/gcc/gcc/gimple-fold.c:2834
2834          tree byte_offset = DECL_FIELD_OFFSET (cfield);
Missing separate debuginfos, use: debuginfo-install glibc-2.11.1-1.x86_64
(gdb) p cfield
$1 = (tree) 0x0
(gdb) bt
#0  0x000000000078bae8 in fold_nonarray_ctor_reference (type=0x7ffff7ece5e8,
ctor=0x7ffff7f8dab0, offset=0, size=32)
    at /tmp/hpautotest-gcc1/gcc/gcc/gimple-fold.c:2834
#1  0x000000000078c93d in fold_ctor_reference (type=0x7ffff7ece5e8,
ctor=0x7ffff7f8dab0, offset=0, size=32)
    at /tmp/hpautotest-gcc1/gcc/gcc/gimple-fold.c:2923
#2  0x000000000078d210 in fold_const_aggregate_ref_1 (t=0x7ffff7f7ca10,
valueize=0)
    at /tmp/hpautotest-gcc1/gcc/gcc/gimple-fold.c:3017
#3  0x000000000078d3dd in fold_const_aggregate_ref (t=0x7ffff7f7ca10)
    at /tmp/hpautotest-gcc1/gcc/gcc/gimple-fold.c:3039
#4  0x000000000077e0ef in maybe_fold_reference (expr=0x7ffff7f7ca10, is_lhs=0
'\000')
    at /tmp/hpautotest-gcc1/gcc/gcc/gimple-fold.c:232
#5  0x000000000077eeee in fold_gimple_assign (si=0x7fffffffdac0) at
/tmp/hpautotest-gcc1/gcc/gcc/gimple-fold.c:298
#6  0x0000000000783a3e in fold_stmt_1 (gsi=0x7fffffffdac0, inplace=0 '\000')
    at /tmp/hpautotest-gcc1/gcc/gcc/gimple-fold.c:1168
#7  0x00000000007843cc in fold_stmt (gsi=0x7fffffffdac0) at
/tmp/hpautotest-gcc1/gcc/gcc/gimple-fold.c:1304
#8  0x0000000000af258f in optimize_stmt (bb=0x7ffff7f85478, si=...) at
/tmp/hpautotest-gcc1/gcc/gcc/tree-ssa-dom.c:2133
#9  0x0000000000af1254 in dom_opt_enter_block (walk_data=0x7fffffffdc70,
bb=0x7ffff7f85478)
    at /tmp/hpautotest-gcc1/gcc/gcc/tree-ssa-dom.c:1686
#10 0x0000000000d97b8c in walk_dominator_tree (walk_data=0x7fffffffdc70,
bb=0x7ffff7f85478)
    at /tmp/hpautotest-gcc1/gcc/gcc/domwalk.c:188
#11 0x0000000000aec22b in tree_ssa_dominator_optimize () at
/tmp/hpautotest-gcc1/gcc/gcc/tree-ssa-dom.c:709
#12 0x00000000008dabbb in execute_one_pass (pass=0x1377160) at
/tmp/hpautotest-gcc1/gcc/gcc/passes.c:2064
#13 0x00000000008dada9 in execute_pass_list (pass=0x1377160) at
/tmp/hpautotest-gcc1/gcc/gcc/passes.c:2119
#14 0x00000000008dadca in execute_pass_list (pass=0x12f0ba0) at
/tmp/hpautotest-gcc1/gcc/gcc/passes.c:2120
#15 0x0000000000a56d01 in tree_rest_of_compilation (fndecl=0x7ffff7f74800)
    at /tmp/hpautotest-gcc1/gcc/gcc/tree-optimize.c:420
#16 0x0000000000557390 in cgraph_expand_function (node=0x7ffff7f7f120)
    at /tmp/hpautotest-gcc1/gcc/gcc/cgraphunit.c:1805
#17 0x000000000055754f in cgraph_expand_all_functions () at
/tmp/hpautotest-gcc1/gcc/gcc/cgraphunit.c:1864
#18 0x0000000000557ca1 in cgraph_optimize () at
/tmp/hpautotest-gcc1/gcc/gcc/cgraphunit.c:2141
#19 0x000000000048e19a in lto_main () at
/tmp/hpautotest-gcc1/gcc/gcc/lto/lto.c:2868
#20 0x00000000009b0ca9 in compile_file () at
/tmp/hpautotest-gcc1/gcc/gcc/toplev.c:565
#21 0x00000000009b2fa3 in do_compile () at
/tmp/hpautotest-gcc1/gcc/gcc/toplev.c:1925
#22 0x00000000009b311a in toplev_main (argc=17, argv=0x7fffffffe008) at
/tmp/hpautotest-gcc1/gcc/gcc/toplev.c:2001
#23 0x0000000000490f90 in main (argc=17, argv=0x7fffffffe008) at
/tmp/hpautotest-gcc1/gcc/gcc/main.c:36

HTH!

Reply via email to