This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/8492: [3.3 regression] GCC spins forever compiling loop
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, thorpej at shagadelic dot org
- Date: 19 Nov 2002 01:29:39 -0000
- Subject: Re: optimization/8492: [3.3 regression] GCC spins forever compiling loop
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, thorpej at shagadelic dot org, gcc-gnats at gcc dot gnu dot org
Old Synopsis: GCC spins forever compiling loop
New Synopsis: [3.3 regression] GCC spins forever compiling loop
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Nov 18 17:29:37 2002
State-Changed-Why:
Confirmed. Compiles fine with 2.95 and 3.2.1, but hangs
with 3.3 of today. Code is this:
---------------------------------
int count;
int func(int *valp) {
int val, locked = 0;
while ((val = *valp) != 0) {
if (count) {
if (count)
locked = 1;
else
locked = 1;
if (!locked)
continue;
}
if (!count)
count--;
break;
}
return val;
}
----------------------------
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8492