From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 79E243858423; Sun, 6 Feb 2022 07:32:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 79E243858423 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/104407] New: [10/11/12 Regression] '-fcompare-debug' failure (length) w/ -std=c++17 -O1 Date: Sun, 06 Feb 2022 07:32:56 +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 cf_gcctarget 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: Sun, 06 Feb 2022 07:32:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104407 Bug ID: 104407 Summary: [10/11/12 Regression] '-fcompare-debug' failure (length) w/ -std=3Dc++17 -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: --- Target: x86_64-unknown-linux-gnu gcc 12.0.1 20220130 snapshot (g:baf98320ac6cd56da0c0b460fb94e3b87a79220d) f= ails -fcompare-debug check when compiling the following testcase, extracted from gcc/testsuite/g++.dg/cpp1z/decomp13.C, w/ -O1: struct A { int i; long j; int k : 2; char l; } a; auto [ aa, bb, cc, dd ] =3D a; namespace N { auto & [ m, n, o, ppp ] =3D a; } % x86_64-unknown-linux-gnu-g++-12.0.1 -O1 -fcompare-debug -c t3pwb1uu.C x86_64-unknown-linux-gnu-g++-12.0.1: error: t3pwb1uu.C: '-fcompare-debug' failure (length) --- t3pwb1uu.C.gkd 2022-02-06 14:31:15.936434434 +0700 +++ t3pwb1uu.gk.C.gkd 2022-02-06 14:31:15.996430437 +0700 @@ -11,7 +11,7 @@ (note # 0 0 NOTE_INSN_FUNCTION_BEG) (note # 0 0 NOTE_INSN_DELETED) (insn # 0 0 2 (set (reg:TI 20 xmm0 [89]) - (mem/c:TI (symbol_ref:DI ("a") [flags 0x2] ) [ a+0 = S16 A128])) "t3pwb1uu.C":3:6# {*movti_internal} + (mem/c:TI (symbol_ref:DI ("a") [flags 0x2] ) [ a+0 = S16 A64])) "t3pwb1uu.C":3:6# {*movti_internal} (nil)) (insn # 0 0 2 (set (mem/c:TI (symbol_ref:DI ("_ZDC2aa2bb2cc2ddE") [flags 0= x2]=20 ) [ D.xxxx+0 S16 A128]) (reg:TI 20 xmm0 [89])) "t3pwb1uu.C":3:6# {*movti_internal} @@ -19,9 +19,9 @@ (nil))) (insn # 0 0 2 (set (reg:DI 0 ax [orig:87 a+16 ] [87]) (mem/c:DI (const:DI (plus:DI (symbol_ref:DI ("a") [flags 0x2]=20 ) - (const_int 16 [0x10]))) [ a+16 S8 A128])) "t3pwb1uu.C":3:6# {*movdi_internal} + (const_int 16 [0x10]))) [ a+16 S8 A64])) "t3pwb1uu.C":= 3:6# {*movdi_internal} (expr_list:REG_EQUIV (mem/c:DI (const:DI (plus:DI (symbol_ref:DI ("a") [flags 0x2] ) - (const_int 16 [0x10]))) [ a+16 S8 A128]) + (const_int 16 [0x10]))) [ a+16 S8 A64]) (nil))) (insn # 0 0 2 (set (mem/c:DI (const:DI (plus:DI (symbol_ref:DI ("_ZDC2aa2bb2cc2ddE") [flags 0x2] ) (const_int 16 [0x10]))) [ D.xxxx+16 S8 A128])=