This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/15135] program hangs in call to sqrt when compiled with -O
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Apr 2004 17:34:13 -0000
- Subject: [Bug optimization/15135] program hangs in call to sqrt when compiled with -O
- References: <20040425165245.15135.dfg@decode.is>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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