public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/31175]  New: isinf incorrectly expanded
@ 2007-03-14 16:47 rth at gcc dot gnu dot org
  2007-03-14 17:19 ` [Bug target/31175] " schwab at suse dot de
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rth at gcc dot gnu dot org @ 2007-03-14 16:47 UTC (permalink / raw)
  To: gcc-bugs

#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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-11-05 16:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-14 16:47 [Bug target/31175] New: isinf incorrectly expanded rth at gcc dot gnu dot org
2007-03-14 17:19 ` [Bug target/31175] " schwab at suse dot de
2007-03-14 17:38 ` ubizjak at gmail dot com
2007-04-03 10:21 ` uros at gcc dot gnu dot org
2007-04-05 11:22 ` ubizjak at gmail dot com
2008-11-05 16:21 ` ubizjak at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).