This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/26725] New: ICE in check_reg_live, at haifa-sched.c:4645 with -O2 at IPF
- From: "grigory_zagorodnev at linux dot intel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Mar 2006 10:37:43 -0000
- Subject: [Bug rtl-optimization/26725] New: ICE in check_reg_live, at haifa-sched.c:4645 with -O2 at IPF
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
GCC 4.2 revision 112135 failed to compile SPEC cpu2000/197.parser.
Here is the minimal reproducer:
struct Exp_struct {
char type;
unsigned char cost;
};
extern void foo();
void print_expression(struct Exp_struct * n)
{
int i;
if (n->type == 2)
{
for (i=0; i<n->cost; i++) foo();
foo();
} else {
for (i=0; i<n->cost; i++) foo();
if (n->cost == 0) foo();
}
}
$ gcc-42 -c -O2 par.c
par.c: In function 'print_expression':
par.c:17: internal compiler error: in check_reg_live, at haifa-sched.c:4645
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE in check_reg_live, at haifa-sched.c:4645 with -O2 at
IPF
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: grigory_zagorodnev at linux dot intel dot com
GCC build triplet: ia64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26725