public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/22200] New: numeric_limits<signed>::is_modulo is inconsistend with gcc
@ 2005-06-27 15:19 veksler at il dot ibm dot com
  2005-06-27 15:21 ` [Bug libstdc++/22200] " pinskia at gcc dot gnu dot org
                   ` (22 more replies)
  0 siblings, 23 replies; 26+ messages in thread
From: veksler at il dot ibm dot com @ 2005-06-27 15:19 UTC (permalink / raw)
  To: gcc-bugs

GCC does not have a proper modulo overflow semantics for signed
integral types.
1. The loop optimizer seems to assume that signed overflow does
   not happen (or is undefined). 
2. On x86 INT_MAX/-1 seems to trap (instead of implementing
   modulo semantics).

In that case numeric_limits<signed>:is_modulo should be synchronized
with gcc and be set to false instead of true.

Another option, is to change gcc to fully support the modulo
arithmetics of signed integer.

-- 
           Summary: numeric_limits<signed>::is_modulo is inconsistend with
                    gcc
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: veksler at il dot ibm dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-06-27 22:00 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-27 15:19 [Bug libstdc++/22200] New: numeric_limits<signed>::is_modulo is inconsistend with gcc veksler at il dot ibm dot com
2005-06-27 15:21 ` [Bug libstdc++/22200] " pinskia at gcc dot gnu dot org
2005-06-27 15:33 ` veksler at il dot ibm dot com
2005-06-27 15:40 ` pinskia at gcc dot gnu dot org
2005-06-27 16:06 ` gdr at integrable-solutions dot net
2005-06-27 16:07 ` pinskia at gcc dot gnu dot org
2005-06-27 16:24   ` Gabriel Dos Reis
2005-06-27 16:09 ` gdr at integrable-solutions dot net
2005-06-27 16:21 ` gdr at gcc dot gnu dot org
2005-06-27 16:25 ` gdr at integrable-solutions dot net
2005-06-27 16:53   ` Andrew Pinski
2005-06-27 16:32 ` themis_hv at yahoo dot co dot uk
2005-06-27 16:35 ` veksler at il dot ibm dot com
2005-06-27 16:53 ` pinskia at physics dot uc dot edu
2005-06-27 17:29 ` pinskia at gcc dot gnu dot org
2005-06-27 17:34 ` pinskia at gcc dot gnu dot org
2005-06-27 18:00 ` schlie at comcast dot net
2005-06-27 18:19 ` gdr at integrable-solutions dot net
2005-06-27 18:23 ` gdr at integrable-solutions dot net
2005-06-27 18:26 ` gdr at gcc dot gnu dot org
2005-06-27 18:27 ` gdr at integrable-solutions dot net
2005-06-27 18:34 ` pinskia at gcc dot gnu dot org
2005-06-27 18:46 ` gdr at integrable-solutions dot net
2005-06-27 20:28 ` veksler at il dot ibm dot com
2005-06-27 21:02 ` pinskia at gcc dot gnu dot org
2005-06-27 22:00 ` veksler at il dot ibm 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).