public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/43000]  New: [4.5 Regression] VRP miscompiles python with -fwrapv
@ 2010-02-08 16:49 rguenth at gcc dot gnu dot org
  2010-02-08 16:49 ` [Bug tree-optimization/43000] " rguenth at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-08 16:49 UTC (permalink / raw)
  To: gcc-bugs

It miscompiles

                                if (need <= i) {

in filterstring inlined to builtin_filter in Python/bltinmodule.c.

Testcase:

int __attribute__((noinline))
foo (long i, long j)
{
  if (i >= 1)
    if (j > -9223372036854775807L)
      {
        long x;
        j--;
        x = i + j;
        if (x >= 0)
          return 1;
      }
  return 0;
}
int main()
{
  if (foo (1, 1) != 1)
    abort ();
  return 0;
}


-- 
           Summary: [4.5 Regression] VRP miscompiles python with -fwrapv
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-02-23 17:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-08 16:49 [Bug tree-optimization/43000] New: [4.5 Regression] VRP miscompiles python with -fwrapv rguenth at gcc dot gnu dot org
2010-02-08 16:49 ` [Bug tree-optimization/43000] " rguenth at gcc dot gnu dot org
2010-02-09 10:11 ` rguenth at gcc dot gnu dot org
2010-02-09 11:34 ` rguenth at gcc dot gnu dot org
2010-02-09 11:35 ` rguenth at gcc dot gnu dot org
2010-02-23 17:07 ` hjl 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).