From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 970063858D37; Sat, 22 Jan 2022 08:31:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 970063858D37 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/104180] New: [10/11/12 Regression] '-fcompare-debug' failure (length) w/ -O1 Date: Sat, 22 Jan 2022 08:31:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Sat, 22 Jan 2022 08:31:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104180 Bug ID: 104180 Summary: [10/11/12 Regression] '-fcompare-debug' failure (length) w/ -O1 Product: gcc Version: 12.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: --- g++ 12.0.0 20220109 snapshot (g:90045c5df5b3c8853e7740fb72a11aead1c489bb) f= ails -fcompare-debug check when compiling the following testcase, reduced from gcc/testsuite/gcc.dg/torture/pr89223.c, w/ -O1: int a[5]; void c () { unsigned int b; for (b =3D 3; ; b--) a[b] =3D ({ a[b + 1]; }); } % g++-12.0.0 -O1 -fcompare-debug -c lluhupiv.c g++-12.0.0: error: lluhupiv.c: '-fcompare-debug' failure (length) --- lluhupiv.c.gkd 2022-01-22 15:27:16.168639041 +0700 +++ lluhupiv.gk.c.gkd 2022-01-22 15:27:16.239634334 +0700 @@ -33,7 +33,7 @@ (nil)) (insn # 0 0 3 (set (mem:SI (plus:DI (mult:DI (reg:DI 2 cx [orig:87 b ] [87= ]) (const_int 4 [0x4])) - (reg/f:DI 5 di [86])) [ a[b_3]+0 S4 A32]) + (reg/f:DI 5 di [86])) [ MEM [(int *)&a][b_3]+0 S4 A32]) (reg:SI 4 si [orig:82 _2 ] [82])) "lluhupiv.c":9:10# {*movsi_inter= nal} (expr_list:REG_DEAD (reg:SI 4 si [orig:82 _2 ] [82]) (expr_list:REG_DEAD (reg:DI 2 cx [orig:87 b ] [87])=