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

            Bug ID: 115154
           Summary: [13/14 Regression] wrong code at optimization levels
                    -O2, -O3, -Os
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bic60176 at gmail dot com
  Target Milestone: ---

Created attachment 58242
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58242&action=edit
testcase

OS: Ubuntu 22.04.3 LTS

We found that there are discrepancies when compiling with gcc-13.2.0,
gcc-14.1.0 at optimization levels -O2, -O3, and -Os.

$ ../compiler-builds/gcc-13.2.0_build/bin/gcc -fsanitize=undefined -g -lgcc_s
-I/home/csmith/include/csmith-2.3.0 -O2 testcase.c -o exec

$ timeout 1s ./exec 2>exec.err
f.b=0

$ ../compiler-builds/gcc-12.3.0_build/bin/gcc -fsanitize=undefined -g -lgcc_s
-I/home/csmith/include/csmith-2.3.0 -O2 testcase.c -o exec

$ timeout 1s ./exec 2>exec.err
f.b=-1

Reply via email to