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

            Bug ID: 79818
           Summary: [7 Regression] wrong code with -fwrapv and
                    -Os/-O1/-O2/-O3
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mednafen at sent dot com
  Target Milestone: ---

Created attachment 40871
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40871&action=edit
test case

Linux x86_64

$ /usr/local/gcc-0f7b961/bin/gcc --version
gcc (GCC) 7.0.1 20170302 (experimental)

$ /usr/local/gcc-0f7b961/bin/gcc -fwrapv -O1 -o test test.c ; ./test
Aborted

$ /usr/local/gcc-0f7b961/bin/gcc -fwrapv -O2 -o test test.c ; ./test
Aborted

Reply via email to