This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17704] [4.0 Regression] Infinite recursion in tree-scalar-evolution with -Os
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2004 22:54:47 -0000
- Subject: [Bug tree-optimization/17704] [4.0 Regression] Infinite recursion in tree-scalar-evolution with -Os
- References: <20040927204041.17704.tobi@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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