From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 15C373858406; Mon, 24 Jan 2022 07:57:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 15C373858406 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/104156] [12 Regression] -fcompare-debug failure with -O2 -funswitch-loops since r12-4526-gd8edfadfc7a9795b Date: Mon, 24 Jan 2022 07:57:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: compare-debug-failure X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.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, 24 Jan 2022 07:57:19 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104156 --- Comment #10 from rguenther at suse dot de --- On Sat, 22 Jan 2022, cnsun at uwaterloo dot ca wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104156 >=20 > --- Comment #9 from Chengnian Sun --- > Thanks, Andrew.=20 >=20 > What about -flto? Does GCC still guarantee such a compilation consistency= wrt > to debug info in the presence of -flto? Yes, even with -flto we aim to produce the same code. Note I'm not 100% sure that -fcompare-debug works fine on the LTRANS level so you maybe need to adjust to -flto-partiton=3Dnone.=