[Bug target/31175] New: isinf incorrectly expanded

rth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Mar 14 16:47:00 GMT 2007


#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



More information about the Gcc-bugs mailing list