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]
Other format: [Raw text]

[Bug rtl-optimization/10463] -fssa-ccp ICE


------- Additional Comments From bangerth at dealii dot org  2004-08-25 13:17 -------
Steven, Gaby, you wondered whether this is a regression. Indeed it is. 
Here is a small testcase: 
---------------- 
bool should_exit; 
 
void foo() { 
  int i = 0; 
  while(!should_exit) { 
    int num = 1; 
    if (num) 
      for (int * it; num && it != 0; ) 
        if (*it <= 1) 
          if (i < 1) 
            i = 1; 
  } 
} 
------------------------- 
It compiles with 3.2.3, but ICEs with 3.3.4: 
 
g/x> /home/bangerth/bin/gcc-3.2.3/bin/c++ -c -fssa -fssa-ccp -O2 x.cc 
 
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ -c -fssa -fssa-ccp -O2 x.cc 
x.cc: In function `void foo()': 
x.cc:13: internal compiler error: Segmentation fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
Of course the flags were abandoned in 3.4 and later, so it doesn't trigger 
there at all. 
 
Steven, you may want to check whether your patch fixes this problem. 
 
W. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10463


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