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 optimization/13318] ICE: floating point exception gcc 3.3.3


------- Additional Comments From bangerth at dealii dot org  2003-12-05 17:47 -------
Confirmed. Here's a cut-down: 
------------------------- 
struct S { 
  int key; 
  int rnext,rprev; 
}; 
 
void foo(struct S* H){ 
  int i, k; 
  for (i=0; i<2; i++){ 
    struct S* cell=H+k; 
    cell->key=i*(0xffffffffUL/2); 
    cell->rnext=k+(1-i); 
    cell->rprev=k+(1-i); 
  } 
} 
-------------------------- 
this also ICEs on my x86-linux box: 
 
g/x> /home/bangerth/bin/gcc-3.3.3-pre/bin/gcc -c -O2 x.c 
x.c: In function `foo': 
x.c:14: internal compiler error: Floating point exception 
 
The same thing happens with mainline and all the way back to 2.95. 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-12-05 17:47:40
               date|                            |


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


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