This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/40570] [4.5 Regression] ICE with recursion at -O3
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2009 01:59:22 -0000
- Subject: [Bug tree-optimization/40570] [4.5 Regression] ICE with recursion at -O3
- References: <bug-40570-9596@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from reichelt at gcc dot gnu dot org 2009-06-30 01:59 -------
Confirmed. Reduced testcase that goes into infinite loop:
=========================================
static int foo(int i);
static int bar(int i) { foo(i); }
static int foo(int i)
{
int j;
if (j)
FOO(j);
return bar(i);
}
int baz()
{
foo(0);
if (baz())
return 1;
return 0;
}
=========================================
This might be related to PR40556.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2009-06-30 01:59:22
date| |
Summary|[4.5 Regression] ice in |[4.5 Regression] ICE with
|get_constraint_for_ptr_offse|recursion at -O3
|t with -O3 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40570