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]

c++/4512: New ICE in loop_iterations at unroll.c:3510, regression vs. 3.0.1



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


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