public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
[parent not found: <bug-21718-6@http.gcc.gnu.org/bugzilla/>]
* [Bug c/21718] New: real.c rounding not perfect
@ 2005-05-23 13:03 neil at gcc dot gnu dot org
  2005-05-23 13:05 ` [Bug middle-end/21718] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 30+ messages in thread
From: neil at gcc dot gnu dot org @ 2005-05-23 13:03 UTC (permalink / raw)
  To: gcc-bugs

When compiled with -Wall,

int foo (void) { if (9007199254740991.4999999999999999999999999999999995 ==
9007199254740991.5) return 1;}

does not complain about a missing return statement, showing that GCC is folding
the comparison to true.  However, the LHS should round down.

With one less 9 GCC gets it correct.

I'm not convinced it's worthwhile to get perfect rounding, but Joseph wanted me
to file a report.

-- 
           Summary: real.c rounding not perfect
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: neil at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21718


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

end of thread, other threads:[~2013-11-26  2:50 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-21718-4@http.gcc.gnu.org/bugzilla/>
2012-11-04 23:06 ` [Bug middle-end/21718] real.c rounding not perfect hjl.tools at gmail dot com
2012-11-05  0:17 ` vincent-gcc at vinc17 dot net
2012-11-05  1:38 ` hjl.tools at gmail dot com
2012-11-05  8:12 ` vincent-gcc at vinc17 dot net
2012-11-05 20:49 ` joseph at codesourcery dot com
2013-09-25 14:48 ` exploringbinary at gmail dot com
2013-09-25 15:45 ` vincent-gcc at vinc17 dot net
2013-09-25 18:00 ` exploringbinary at gmail dot com
2013-10-09 18:58 ` exploringbinary at gmail dot com
2013-10-10  1:12 ` vincent-gcc at vinc17 dot net
2013-11-20 14:35 ` jsm28 at gcc dot gnu.org
2013-11-20 14:39 ` jsm28 at gcc dot gnu.org
2013-11-20 14:41 ` jsm28 at gcc dot gnu.org
2013-11-20 15:07 ` exploringbinary at gmail dot com
2013-11-21 19:34 ` exploringbinary at gmail dot com
2013-11-21 23:04 ` exploringbinary at gmail dot com
2013-11-21 23:20 ` jsm28 at gcc dot gnu.org
2013-11-22  5:22 ` exploringbinary at gmail dot com
2013-11-26  2:50 ` exploringbinary at gmail dot com
     [not found] <bug-21718-6@http.gcc.gnu.org/bugzilla/>
2005-10-29 20:50 ` pinskia at gcc dot gnu dot org
2007-02-05 19:03 ` jsm28 at gcc dot gnu dot org
2007-10-11  3:45 ` neil at gcc dot gnu dot org
2007-10-18 15:24 ` neil at gcc dot gnu dot org
2009-04-20 17:02 ` ghazi at gcc dot gnu dot org
2009-04-20 17:31 ` joseph at codesourcery dot com
2010-06-04  1:31 ` exploringbinary at gmail dot com
2010-06-05 11:57 ` joseph at codesourcery dot com
2005-05-23 13:03 [Bug c/21718] New: " neil at gcc dot gnu dot org
2005-05-23 13:05 ` [Bug middle-end/21718] " pinskia at gcc dot gnu dot org
2005-05-23 14:50 ` jsm28 at gcc dot gnu dot org
2005-05-24  2:59 ` jsm28 at gcc dot gnu dot org

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).