[Bug debug/105464] New: '-fcompare-debug' failure (length) w/ -Og -fharden-compares -fno-tree-dce

asolokha at gmx dot com gcc-bugzilla@gcc.gnu.org
Tue May 3 10:12:37 GMT 2022


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

            Bug ID: 105464
           Summary: '-fcompare-debug' failure (length) w/ -Og
                    -fharden-compares -fno-tree-dce
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: compare-debug-failure
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: x86_64-unknown-linux-gnu

Created attachment 52920
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52920&action=edit
gkd diff

gcc 13.0.0 20220501 snapshot (g:75bbc3da3e5f75f683fa33e309045c582efd20eb) fails
-fcompare-debug check when compiling
gcc/testsuite/gcc.c-torture/compile/pr46547-1.c w/ -Og -fharden-compares
-fno-tree-dce:

% x86_64-unknown-linux-gnu-gcc-13.0.0 -Og -fcompare-debug -fharden-compares
-fno-tree-dce -c sqnqheby.c
x86_64-unknown-linux-gnu-gcc-13.0.0: error: sqnqheby.c: '-fcompare-debug'
failure (length)

gkd diff attached.


More information about the Gcc-bugs mailing list