From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9BFCF3858D3C; Tue, 17 May 2022 12:08:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9BFCF3858D3C From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/105415] [9/10/11/12/13 Regression] '-fcompare-debug' failure w/ -O2 -ftree-parallelize-loops=2 since r7-4900-g59ec925b1199f9 Date: Tue, 17 May 2022 12:08:51 +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: 12.0 X-Bugzilla-Keywords: compare-debug-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc 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: Tue, 17 May 2022 12:08:51 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105415 Arseny Solokha changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[9/10/11/12 Regression] |[9/10/11/12/13 Regression] |'-fcompare-debug' failure |'-fcompare-debug' failure |w/ -O2 |w/ -O2 |-ftree-parallelize-loops=3D2 |-ftree-parallelize-loops= =3D2 |since |since |r7-4900-g59ec925b1199f9 |r7-4900-g59ec925b1199f9 --- Comment #8 from Arseny Solokha --- I still get a similar failure w/ gcc 13.0.0 20220515 snapshot: @@ -360,7 +360,7 @@ 1: int i; 2: signed int D.xxxx; -;; Function bar._loopfn.0 (bar._loopfn.0, funcdef_no=3D2, cgraph_uid=3D3, symbol_order=3D5) +;; Function bar._loopfn.0 (bar._loopfn.0, funcdef_no=3D2, cgraph_uid=3D3, symbol_order=3D6) (note # 0 0 NOTE_INSN_DELETED) (note # 0 0 [bb 2] NOTE_INSN_BASIC_BLOCK) upon the following change to the original testcase: @@ -4,13 +4,10 @@ static int n; void foo (void) { - int s =3D 0; + int *arr[] =3D { &n, &n, &n }; + int unused =3D n; - while (m < 1) - { - s +=3D n; - ++m; - } + m =3D 0; } void Do you want me to open a separate PR for that?=