From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 77F713AA9C4D; Thu, 10 Jun 2021 07:30:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 77F713AA9C4D From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/100852] [11/12 Regression] -fcompare-debug failure (length) with -Og -fif-conversion -fno-tree-ccp -fno-tree-copy-prop Date: Thu, 10 Jun 2021 07:30:35 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.2 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: Thu, 10 Jun 2021 07:30:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100852 --- Comment #4 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:2d2ed777b23ab6503027039e0adbfe1162f52b2f commit r12-1354-g2d2ed777b23ab6503027039e0adbfe1162f52b2f Author: Jakub Jelinek Date: Thu Jun 10 09:28:27 2021 +0200 ifcvt: Fix -fcompare-debug bug [PR100852] The following testcase fails -fcompare-debug, because it is ifcvt optim= ized into umin only with -g0 and not with -g - the function(s) use prev_nonnote_insn, which without -g finds a real insn the code is looki= ng for, while with -g finds a DEBUG_INSN. 2021-06-10 Jakub Jelinek PR debug/100852 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use prev_nonnote_nondebug_insn instead of prev_nonnote_insn. * g++.dg/opt/pr100852.C: New test.=