[Bug tree-optimization/48768] New: ICE in get_expr_operands()
arthur.j.odwyer at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Apr 26 05:54:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48768
Summary: ICE in get_expr_operands()
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: arthur.j.odwyer@gmail.com
Created attachment 24098
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24098
Output of "ajo-gcc -O1 -finline-small-functions test746970675.c -g -c -v"
This reproduces for me with svn revision 172950 (2011-04-25), but it doesn't
reproduce with gcc-4.5. I'm on Ubuntu 10.10, x86-64. Attached "gcc-v.txt".
cat >test746970675.c <<EOF
extern int g_79, g_23;
int foo(int si1, int si2) {
return (si1 > 0 && si1 > si2) || (si1 < 0 && si1 < si2) ? 0 : (si1 + 1);
}
int func_75() {
int i, l_90 = 1;
for (i = 0; i != 10; i = foo(i, 1)) {
lbl_131:
if (i) {
int *l_126 = &l_90;
} else if (l_90)
goto lbl_131;
}
return 0;
}
unsigned func_58(int p_59) {
return g_23;
}
int func_62() {
unsigned char p_67;
int i, p_63;
if (func_58(func_75())) {
return 0;
} else {
for (p_67 = 250; p_67 > 0; p_67 += 6) {
for (i = 10; i >= 0; --i) {
if (func_58(p_63) >= 0u) {
p_63 = func_75();
g_79 = (g_23 < 0) ? 0 : (g_23 - 1);
}
}
}
}
return p_63;
}
EOF
gcc -O1 -finline-small-functions test746970675.c -g -c
unhandled expression in get_expr_operands():
<error_mark 0x7ff771ced9f0>
test746970675.c: In function ‘func_62’:
test746970675.c:19:5: internal compiler error: in get_expr_operands, at
tree-ssa-operands.c:1024
This test case is reduced from the output of Csmith
(http://embed.cs.utah.edu/csmith/), using the following command line:
csmith --bitfields --packed-struct -s 746970675 > test746970675.c
More information about the Gcc-bugs
mailing list