This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/40570] [4.5 Regression] ICE with recursion at -O3



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]