This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/31175] New: isinf incorrectly expanded
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Mar 2007 16:47:29 -0000
- Subject: [Bug target/31175] New: isinf incorrectly expanded
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
#include <math.h>
double x = -__builtin_inf ();
int main()
{
if (isinf (x) != -1)
abort ();
return 0;
}
Examine the definition of isinf closely. It returns -1 for -inf.
--
Summary: isinf incorrectly expanded
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rth at gcc dot gnu dot org
GCC target triplet: i386-*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31175