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/15135] program hangs in call to sqrt when compiled with -O


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-25 17:34 -------
A simpler testcase for 3.4.0 and above:
inline double fmax(double a, double b) {
 return (a<=b)? b : a;
}
double f() {
  return __builtin_sqrt(__builtin_nan("")/fmax(1., 1./.0));
}
int main() {
  double u = f();
  return 0;
}

Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-25 17:34:12
               date|                            |


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


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