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/17704] [4.0 Regression] Infinite recursion in tree-scalar-evolution with -Os


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


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