public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/63665] New: [5 Regression] wrong code with signed overflow even with -fwrapv
@ 2014-10-28  9:04 zsojka at seznam dot cz
  2014-10-28  9:25 ` [Bug tree-optimization/63665] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2014-10-28  9:04 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63665

            Bug ID: 63665
           Summary: [5 Regression] wrong code with signed overflow even
                    with -fwrapv
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz

Created attachment 33826
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33826&action=edit
reduced testcase (from gcc.c-torture/execute/20040409-1.c)

Output:
$ gcc -O -fno-tree-ccp -fno-tree-fre -fwrapv testcase.c
$ ./a.out 
Aborted

In the assembly output, main() unconditionally calls abort().

The original testcase, gcc.c-torture/execute/20040409-1.c, fails with:
$ gcc -O2 -flto -fno-tree-ccp -fno-tree-copy-prop -fno-tree-fre 20040409-1.i
$ ./a.out 
Aborted

Tested revisions:
r216724 - FAIL
4_9 r216431 - OK
4_8 r216430 - OK


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

end of thread, other threads:[~2014-11-26 13:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-28  9:04 [Bug tree-optimization/63665] New: [5 Regression] wrong code with signed overflow even with -fwrapv zsojka at seznam dot cz
2014-10-28  9:25 ` [Bug tree-optimization/63665] " rguenth at gcc dot gnu.org
2014-10-28  9:43 ` rguenth at gcc dot gnu.org
2014-10-28 11:44 ` rguenth at gcc dot gnu.org
2014-10-28 12:06 ` [Bug tree-optimization/63665] [4.8/4.9 " rguenth at gcc dot gnu.org
2014-10-28 12:54 ` rguenth at gcc dot gnu.org
2014-11-26 11:43 ` rguenth at gcc dot gnu.org
2014-11-26 13:16 ` [Bug tree-optimization/63665] [4.8 " rguenth at gcc dot gnu.org
2014-11-26 13:17 ` rguenth at gcc dot gnu.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).