From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BAA0C3858D1E; Sun, 6 Feb 2022 08:51:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BAA0C3858D1E From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/104407] [10/11/12 Regression] '-fcompare-debug' failure (length) w/ -std=c++17 -O1 Date: Sun, 06 Feb 2022 08:51:17 +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, needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: target_milestone keywords cf_reconfirmed_on bug_status everconfirmed cf_known_to_fail cf_known_to_work 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: Sun, 06 Feb 2022 08:51:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104407 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |10.4 Keywords| |needs-bisection Last reconfirmed| |2022-02-06 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Known to fail| |10.3.0, 11.1.0 Known to work| |10.2.0 --- Comment #1 from Andrew Pinski --- Confirmed, the alignment with -g is 64 for the load but 128 without -g. -g: (insn 9 8 10 (set (reg/f:DI 83) (symbol_ref:DI ("a") [flags 0x2] )) "/app/example.cpp":4:6 -1 (nil)) (insn 10 9 11 (set (reg:TI 84) (mem/c:TI (reg/f:DI 83) [1 a+0 S16 A64])) "/app/example.cpp":4:6 -1 (nil)) vs: (insn 6 5 7 (set (reg/f:DI 83) (symbol_ref:DI ("a") [flags 0x2] )) "/app/example.cpp":4:6 -1 (nil)) (insn 7 6 8 (set (reg:TI 84) (mem/c:TI (reg/f:DI 83) [1 a+0 S16 A128])) "/app/example.cpp":4:6 -1 (nil)) The alignment in the assembly is 16 (128) for both: .align 16 .type a, @object .size a, 24 a: .zero 24 It not obvious what is causing the issue though. Here is a C++98 testcase that does not depend on C++17 features.=