This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/48893] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:477
- From: "danglin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 6 May 2011 00:57:56 +0000
- Subject: [Bug middle-end/48893] [4.7 Regression] ICE in evaulate_conditions_for_edge at ipa-inline-analysis.c:477
- Auto-submitted: auto-generated
- References: <bug-48893-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48893
--- Comment #3 from John David Anglin <danglin at gcc dot gnu.org> 2011-05-06 00:52:46 UTC ---
This is call that causes ICE:
Breakpoint 1, evaluate_conditions_for_edge (e=0xda9780, inline_p=1 '\001') at
../../gcc/gcc/ipa-inline-analysis.c:577
577 tree val = VEC_index (tree, known_vals, c->operand_num);
(gdb) p i
$5 = 0
(gdb) p *c
$6 = {
val = 0x0,
operand_num = 2,
code = ERROR_MARK
}
(gdb) p *known_vals
$7 = {
base = {
num = 2,
alloc = 2,
vec = {0x0}
}
}
(gdb) p debug_tree (e->callee->decl)
<function_decl 0xd5b000 open
type <function_type 0xd5a360
type <integer_type 0x417142a0 int sizes-gimplified public SI
size <integer_cst 0x41705208 constant 32>
unit size <integer_cst 0x4170508c constant 4>
align 32 symtab 1 alias set 8 canonical type 0x417142a0 precision
32 min <integer_cst 0x417051cc -2147483648> max <integer_cst 0x417051e0
2147483647> context <translation_unit_decl 0x417d4e58 D.3701>
pointer_to_this <pointer_type 0x41714c00>>
SI size <integer_cst 0x41705208 32> unit size <integer_cst 0x4170508c
4>
align 32 symtab 0 alias set -1 canonical type 0x4171f360
pointer_to_this <pointer_type 0xd60c00>>
addressable used nothrow static in_system_header decl_5 SI file
/usr/include/sys/fcntl.h line 235 col 12 align 32 context
<translation_unit_decl 0x417d4e58 D.3701> initial <block 0x417802d8>
arguments <parm_decl 0xd58c24 a
type <pointer_type 0x4171f120 type <integer_type 0x4171f0c0 char>
unsigned SI size <integer_cst 0x41705208 32> unit size <integer_cst
0x4170508c 4>
align 32 symtab 164 alias set -1 canonical type 0x4171f120
pointer_to_this <pointer_type 0x4171f540>>
used unsigned SI file /usr/include/sys/fcntl.h line 235 col 36 size
<integer_cst 0x41705208 32> unit size <integer_cst 0x4170508c 4>
align 32 context <function_decl 0xd5b000 open> arg-type <pointer_type
0x4171f120>
chain <parm_decl 0xd58c78 b type <integer_type 0x417142a0 int>
used SI file /usr/include/sys/fcntl.h line 235 col 43 size
<integer_cst 0x41705208 32> unit size <integer_cst 0x4170508c 4>
align 32 context <function_decl 0xd5b000 open> arg-type
<integer_type 0x417142a0 int> chain <parm_decl 0xd58ccc c>>>
result <result_decl 0xd58bd0 D.3470 type <integer_type 0x417142a0 int>
ignored SI file /usr/include/sys/fcntl.h line 235 col 12 size
<integer_cst 0x41705208 32> unit size <integer_cst 0x4170508c 4>
align 32 context <function_decl 0xd5b000 open>>
struct-function 0x417104d0 chain <type_decl 0x417d4dec D.3478>>
$8 = void
(gdb) p debug_tree (e->caller->decl)
<function_decl 0xd5ba00 pex_unix_open_read
type <function_type 0x417b3180
type <integer_type 0x417142a0 int sizes-gimplified public SI
size <integer_cst 0x41705208 constant 32>
unit size <integer_cst 0x4170508c constant 4>
align 32 symtab 1 alias set 8 canonical type 0x417142a0 precision
32 min <integer_cst 0x417051cc -2147483648> max <integer_cst 0x417051e0
2147483647> context <translation_unit_decl 0x417d4e58 D.3701>
pointer_to_this <pointer_type 0x41714c00>>
SI size <integer_cst 0x41705208 32> unit size <integer_cst 0x4170508c
4>
align 32 symtab 175 alias set -1 canonical type 0x417b3180
arg-types <tree_list 0x417b23f0 value <pointer_type 0x417b0420>
chain <tree_list 0x417b23d8 value <pointer_type 0x4171f120>
chain <tree_list 0x417b23c0 value <integer_type 0x417142a0 int>
chain <tree_list 0x4170f210 value <void_type 0x41714840
void>>>>>
pointer_to_this <pointer_type 0x417b31e0>>
addressable used nothrow static SI file ../../gcc/libiberty/pex-unix.c line
341 col 1 align 32 context <translation_unit_decl 0x417d4e58 D.3701> initial
<block 0x417804ac>
arguments <parm_decl 0xd62b28 obj
type <pointer_type 0x417b0420 type <record_type 0x417b03c0 pex_obj>
public unsigned SI size <integer_cst 0x41705208 32> unit size
<integer_cst 0x4170508c 4>
align 32 symtab 0 alias set -1 canonical type 0x417b0420>
used unsigned SI file ../../gcc/libiberty/pex-unix.c line 341 col 37
size <integer_cst 0x41705208 32> unit size <integer_cst 0x4170508c 4>
align 32 context <function_decl 0xd5ba00 pex_unix_open_read> attributes
<tree_list 0xd61b28> arg-type <pointer_type 0x417b0420>
chain <parm_decl 0xd62b7c name type <pointer_type 0x4171f120>
used unsigned SI file ../../gcc/libiberty/pex-unix.c line 341 col
83 size <integer_cst 0x41705208 32> unit size <integer_cst 0x4170508c 4>
align 32 context <function_decl 0xd5ba00 pex_unix_open_read>
arg-type <pointer_type 0x4171f120> chain <parm_decl 0xd62bd0 binary>>>
result <result_decl 0xd62c24 D.3633 type <integer_type 0x417142a0 int>
ignored SI file ../../gcc/libiberty/pex-unix.c line 341 col 1 size
<integer_cst 0x41705208 32> unit size <integer_cst 0x4170508c 4>
align 32 context <function_decl 0xd5ba00 pex_unix_open_read>>
struct-function 0x41710738 chain <function_decl 0xd5ba80
pex_unix_open_write>>
$9 = void