Bug 17363 - [3.3 regression] gcc doesn't terminate compilation at -O2
Summary: [3.3 regression] gcc doesn't terminate compilation at -O2
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 3.3.5
: P2 critical
Target Milestone: 3.3.5
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-08 21:59 UTC by Debian GCC Maintainers
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host: {alpha,powerpc,s390,sparc}-linux
Target: {alpha,powerpc,s390,sparc}-linux
Build: {alpha,powerpc,s390,sparc}-linux
Known to work: 3.2.3 3.4.2
Known to fail: 3.3.5
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Debian GCC Maintainers 2004-09-08 21:59:23 UTC
[forwarded from http://bugs.debian.org/269209]

bug reporter sees this on alpha,powerpc,s390,sparc, Falk reproduced it on
powerpc. works with gcc-3.2, gcc-3.4.2, current gcc-3.3 branch fails. reducing
opt. to -O1 works.

gcc -O2 -c 

int nxtmkr() {
    while (jpg1byte())
	return 0;
}
Comment 1 GCC Commits 2004-09-20 22:52:43 UTC
Subject: Bug 17363

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	sayle@gcc.gnu.org	2004-09-20 22:52:38

Modified files:
	gcc            : ChangeLog sched-rgn.c 

Log message:
	PR rtl-optimization/17363
	Backport from mainline
	2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
	
	PR bootstrap/11593
	* sched-rgn.c (find_rgns): Initialize current_edge correctly.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.1017&r2=1.16114.2.1018
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/sched-rgn.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.50.2.1&r2=1.50.2.2

Comment 2 Andrew Pinski 2004-09-20 23:31:15 UTC
Fixed.