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 target/31175] New: isinf incorrectly expanded


#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


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