[Bug tree-optimization/17704] [4.0 Regression] Infinite recursion in tree-scalar-evolution with -Os

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Oct 7 22:54:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-07 22:54 -------
Reduced testcase:
      GO TO 50
   20       IF (IEXC.EQ.2)
     $         GO TO 80
   50      IF (IEXC.GT.0)
     $         GO TO 20
   80 K = K + 1
            IF( IEXC.EQ.0)
     $         GO TO 20
      DO 150 J = K, IEXC
  150    CONTINUE
      RETURN
      END

Here is a C testcase which makes this a dup of bug 17560:
void MAIN__ ()
{
  int k;
  int j;
  int iexc;
goto L50;
L20: if (iexc == 2) goto L80;
L50: if (iexc > 0) goto L20;
L80: k++;
if (iexc == 0) goto L20;
for(j=k;j<iexc;j++) ;
}

*** This bug has been marked as a duplicate of 17560 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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



More information about the Gcc-bugs mailing list