From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 770CD385842B; Wed, 29 Nov 2023 16:51:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 770CD385842B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701276709; bh=u8Ww0zZmukFJy08c4mPWLD4MmSiiv7X0lqDJWIOvIv4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OYRPTonX+RaeY7ZXNa3Vvauxnn9xKvTyZt4Gc0/XAFZ0OopXWTrqOOEfxUQc2TcJV PSVpZygSMlR+s/5kb9ZJ95em4q/rUZx6q13fw/qAVvTMxGBlwTdRcsfh2GUDiJ7FmL HCtK26m5TnQJ2K0GgjREJfqXT4f9Z7sjZAWXs2bI= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/111922] [11/12/13/14 Regression] ICE in cp with -O2 -fno-tree-fre Date: Wed, 29 Nov 2023 16:51:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 11.5 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111922 --- Comment #10 from GCC Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:634cf26c94de620e66aa124b8ec4d6c2be4b74b2 commit r14-5973-g634cf26c94de620e66aa124b8ec4d6c2be4b74b2 Author: Andrew MacLeod Date: Tue Nov 28 13:02:35 2023 -0500 Check operands before invoking fold_range. Call check_operands_p before fold_range to make sure it is a valid operation. PR tree-optimization/111922 gcc/ * ipa-cp.cc (ipa_vr_operation_and_type_effects): Check the operands are valid before calling fold_range. gcc/testsuite/ * gcc.dg/pr111922.c: New.=