From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CDB1A3894438; Mon, 1 Mar 2021 12:46:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CDB1A3894438 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/99230] [11 Regression] gcc.dg/pr83527.c excess errors: '-fcompare-debug' failure (length) Date: Mon, 01 Mar 2021 12:46:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2021 12:46:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99230 --- Comment #4 from Jakub Jelinek --- I can actually reproduce e.g. on x86_64-linux with: extern void fn2(void); extern void fn3(int); int a, b; void fn1() { int c; short d; switch (a) { case 22000: fn2(); case 22300: b =3D 0; case 22600: case 22601: case 22900: fn3(1); case 20100: fn3(2); case 20200: fn3(3); case 20300: fn3(4); case 20400: fn3(5); case 20310: fn3(4); case 20410: fn3(5); } if (d || c) { do ; while (0); } } and -O2 --param logical-op-non-short-circuit=3D0 -fcompare-debug --param=3Djump-table-max-growth-ratio-for-speed=3D5000 And the difference is the same: --- pr99230-4.c.gkd 2021-03-01 13:44:32.625879468 +0100 +++ pr99230-4.gk.c.gkd 2021-03-01 13:44:32.731878292 +0100 @@ -9,7 +9,7 @@ Declarations used by fn1, sorted by DECL 5: void ; 4: void ; 6: void ; -1: void ; +1: void ; ;; Function fn1 (fn1, funcdef_no=3D0, cgraph_uid=3D1, symbol_order=3D2)=