------- Comment #4 from rguenth at gcc dot gnu dot org  2009-05-06 13:24 -------
Reduced testcase:

void foo(void *);
void
MMAPGCD (int *A1, int *A2)
{
  int *t; 

  do
    {
      t = A1;
      A1 = A2;
      A2 = t;
    }
  while (A2[-1]);

  foo (A1-1);
  foo (A2-1);
}   

if you make foo take int * the issue goes away.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.4.0
      Known to work|                            |4.3.3
            Summary|gcc 4.4.0 compiles in       |[4.4/4.5 Regression] gcc
                   |infinite loop               |4.4.0 compiles in infinite
                   |                            |loop
   Target Milestone|---                         |4.4.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39999

Reply via email to