This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/4512: New ICE in loop_iterations at unroll.c:3510, regression vs. 3.0.1
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/4512: New ICE in loop_iterations at unroll.c:3510, regression vs. 3.0.1
- From: wolfgang dot bangerth at iwr dot uni-heidelberg dot de
- Date: 9 Oct 2001 15:18:06 -0000
- Reply-To: wolfgang dot bangerth at iwr dot uni-heidelberg dot de
>Number: 4512
>Category: c++
>Synopsis: New ICE in loop_iterations at unroll.c:3510, regression vs. 3.0.1
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Tue Oct 09 08:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
todays CVS of gcc3.0.2pre
>Description:
This seems like a new ICE, I didn't see it in 3.0.1. Someone
might want to mark it high priority, since it is a regression
on the branch. Here it goes: compile
-------------------- snip ---------------------
int used ();
struct A {
static void f () {
while (true)
if (used())
return;
};
};
int foo () {
int i;
for (; used(); A::f())
i++;
return i;
};
-------------------- snip ---------------------
with
c++ -O2 -funroll-all-loops -c a.cc
to see
> c++ -O2 -funroll-all-loops -c a.cc
a.cc: In function `int foo()':
a.cc:16: Internal compiler error in loop_iterations, at unroll.c:3510
> c++ -v
Reading specs from /home/people/wolf/Config/sparc-sun-solaris2.7/gcc-ss/lib/gcc-lib/sparc-sun-solaris2.7/3.0.2/specs
Configured with: ../gcc/configure --prefix=/home/people/wolf/Config/sparc-sun-solaris2.7/gcc-ss --with-gnu-ld --with-gnu-as --with-ld=/usr/local/bin/ld --with-as=/usr/local/bin/as : (reconfigured) : (reconfigured) : (reconfigured)
Thread model: posix
gcc version 3.0.2 20011009 (prerelease)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: