public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/31477]  New: [libgcc] miscompiled trapping arithmetic routines
@ 2007-04-04 22:24 rth at gcc dot gnu dot org
  2007-04-04 23:08 ` [Bug other/31477] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: rth at gcc dot gnu dot org @ 2007-04-04 22:24 UTC (permalink / raw)
  To: gcc-bugs

At least some of the trapping arithmetic routines (__absvsi2, etc), are
being compiled *without* the abort that would, in general, be required.
These routines are falling foul of the signed-arithmetic-doesn't-overflow
coding trap.  We need to either compile them with -fwrapv, or rewrite 
them to use unsigned arithmetic.

Further, it would be A Good Idea if these routines were actually tested...


-- 
           Summary: [libgcc] miscompiled trapping arithmetic routines
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rth at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-05-22 17:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-04 22:24 [Bug other/31477] New: [libgcc] miscompiled trapping arithmetic routines rth at gcc dot gnu dot org
2007-04-04 23:08 ` [Bug other/31477] " pinskia at gcc dot gnu dot org
2007-04-09 17:45 ` rguenth at gcc dot gnu dot org
2010-05-22 17:29 ` 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).