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

            Bug ID: 99230
           Summary: [11 Regression] gcc.dg/pr83527.c excess errors:
                    '-fcompare-debug' failure (length)
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hp at gcc dot gnu.org
                CC: aoliva at gcc dot gnu.org, sandra at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-linux
            Target: cris-elf

This test started to fail for cris-elf almost identically to the description in
PR83527 since 3696a50beeb73f4 / r11-3302 "Change C front end to emit structured
loop and switch tree nodes", but I don't see this failure for other targets in
the gcc-testresults@ archives (at least no search engine hits) and I can't find
an obvious target description oddity related to switches or case-tables.

Build machine is x86_64 stock Debian 9.  A brief look at the commit fixing
PR83527 (18408e962e5a) didn't help with applying that to the mentioned switch
rewrite.

No extra tools are needed to repeat the problem, just configure with  e.g.
"--target=cris-elf --enable-languages=c" and
"make all-gcc" then "make check-gcc-c RUNTESTFLAGS=dg.exp=pr83527.c"

(I use --target_board=cris-sim usually but that can be elided for this test.)

Perhaps of interest:
--- pr83527.gk.c.gkd    2021-02-23 16:02:07.985669417 +0100
+++ pr83527.c.gkd       2021-02-23 16:02:07.973669826 +0100
@@ -7,7 +7,7 @@ Declarations used by fn1, sorted by DECL
 5:   void <L0>;
 2:   void <L1>;
 3:   void <L2>;
-1:   void <L9>;
+1:   void <L10>;

 ;; Function fn1 (fn1, funcdef_no=0, cgraph_uid=1, symbol_order=2)

Testsuite run:
Running /x/gcc/gcc/testsuite/gcc.dg/dg.exp ...
... (lines elided)
FAIL: gcc.dg/pr83527.c (test for excess errors)

>From gcc.log:
xgcc: error: /x/gcc/gcc/testsuite/gcc.dg/pr83527.c: '-fcompare-debug' failure
(length)

Reply via email to