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

--- Comment #7 from John David Anglin <danglin at gcc dot gnu.org> 2011-04-26 
01:57:57 UTC ---
ICE occurs at i==2.

Breakpoint 1, evaulate_conditions_for_edge (e=0x78730cf0, inline_p=1 '\001') at
../../gcc/gcc/ipa-inline-analysis.c:481
481               tree val = VEC_index (tree, known_vals, c->operand_num);
(gdb) p i
$6 = 2
(gdb) p *c
$7 = {val = 0x0, operand_num = 1, code = ERROR_MARK}
(gdb) p *known_vals
$9 = {base = {num = 1, alloc = 1, vec = {0x7af2ab28}}}
(gdb) p debug_tree (e->callee->decl)
 <function_decl 785c4b80
_Z41__static_initialization_and_destruction_0ii.constprop.19
    type <function_type 7861ae40
        type <void_type 7af3b840 void type_6 VOID
            align 8 symtab 3 alias set -1 canonical type 7af3b840
            pointer_to_this <pointer_type 7af3b8a0>>
        SI
        size <integer_cst 7af2a438 constant 32>
        unit size <integer_cst 7af2a270 constant 4>
        align 32 symtab 0 alias set -1 canonical type 7861ae40
        arg-types <tree_list 7897d540 value <integer_type 7af3b2a0 int>
            chain <tree_list 7af2ad80 value <void_type 7af3b840 void>>>
        pointer_to_this <pointer_type 78625000>>
    addressable used static in_system_header decl_5 SI file
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/unordered_set.h
line 398 col 1 align 32 initial <block 785a8ea8>
    arguments <parm_decl 785aa160 __initialize_p
        type <integer_type 7af3b2a0 int public type_6 SI size <integer_cst
7af2a438 32> unit size <integer_cst 7af2a270 4>
            align 32 symtab 8 alias set 5 canonical type 7af3b2a0 precision 32
min <integer_cst 7af2a3f0 -2147483648> max <integer_cst 7af2a408 2147483647>
            pointer_to_this <pointer_type 7af3bc00> reference_to_this
<reference_type 7ad73c60>>
        used SI file
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/unordered_set.h
line 398 col 1 size <integer_cst 7af2a438 32> unit size <integer_cst 7af2a270
4>
        align 32 context <function_decl 78c18100
__static_initialization_and_destruction_0> arg-type <integer_type 7af3b2a0 int>
        chain <parm_decl 785aa1b8 __priority type <integer_type 7af3b2a0 int>
            used SI file
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/unordered_set.h
line 398 col 1 size <integer_cst 7af2a438 32> unit size <integer_cst 7af2a270
4>
            align 32 context <function_decl 78c18100
__static_initialization_and_destruction_0> arg-type <integer_type 7af3b2a0
int>>>
    result <result_decl 785ac000 D.108176 type <void_type 7af3b840 void>
        ignored VOID file
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/unordered_set.h
line 398 col 1
        align 8 context <function_decl 78c18100
__static_initialization_and_destruction_0>>
    full-name "void
_Z41__static_initialization_and_destruction_0ii.constprop.19(int)"
    pending-inline-info 785a8ee0>
$16 = void
(gdb) p debug_tree (e->caller->decl)
 <function_decl 785c4c00
_GLOBAL__I_65535_0__test_gnu_gcc_gcc_libstdc___v3_include_precompiled_stdc__.h_E828EBE2_059ED766
    type <function_type 7af478a0
        type <void_type 7af3b840 void type_6 VOID
            align 8 symtab 3 alias set -1 canonical type 7af3b840
            pointer_to_this <pointer_type 7af3b8a0>>
        type_6 SI
        size <integer_cst 7af2a438 constant 32>
        unit size <integer_cst 7af2a270 constant 4>
        align 32 symtab 420 alias set -1 canonical type 7af478a0
        arg-types <tree_list 7af2ad80 value <void_type 7af3b840 void>>
        pointer_to_this <pointer_type 79db9e40>>
    used public static in_system_header preserve SI file
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/unordered_set.h
line 398 col 1 align 32 initial <block 785b0c78>
    result <result_decl 78605dc0 D.108737 type <void_type 7af3b840 void>
        VOID file
/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/bits/unordered_set.h
line 398 col 1
        align 8 context <function_decl 785c4c00
_GLOBAL__I_65535_0__test_gnu_gcc_gcc_libstdc___v3_include_precompiled_stdc__.h_E828EBE2_059ED766>>
    struct-function 79bc1580>

Reply via email to