From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 244523857715; Mon, 17 Apr 2023 10:44:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 244523857715 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681728289; bh=WoaYtQyPvU1bd8kgq4rfXoYEy8zvCV8ab6sSa6iBLkc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=B/fApoe/0OO9mmBxO5E/RCxnytmmf5vMEjYzA/zvJZb59p5lmqn6d1YYGtH8Wx0DM qHo6oKTovj72O3dO1UrQOeI20Z5k3z2JhgW9gxfE8V5//iuuxlJR/6iZ7k97Zm9HaM zEx3OD+QX8SF5JTSutNlvLi9U+6lW4vKUbktzXDs= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109491] [11 Regression] Segfault in tree-ssa-sccvn.cc:expressions_equal_p() Date: Mon, 17 Apr 2023 10:44:47 +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: 13.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: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.4 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=3D109491 --- Comment #19 from CVS Commits --- The releases/gcc-11 branch has been updated by Richard Biener : https://gcc.gnu.org/g:bb400f9916beab1a650d59c73672ef48aaf71b11 commit r11-10629-gbb400f9916beab1a650d59c73672ef48aaf71b11 Author: Richard Biener Date: Thu Apr 13 14:09:30 2023 +0200 tree-optimization/109491 - ICE in expressions_equal_p At some point I elided the NULL pointer check in expressions_equal_p because it shouldn't be necessary not realizing that for example TARGET_MEM_REF has optional operands we cannot substitute with something non-NULL with the same semantics. The following does the simple thing and restore the check removed in r11-4982. PR tree-optimization/109491 * tree-ssa-sccvn.c (expressions_equal_p): Restore the NULL operands test. (cherry picked from commit a37783de23c067d6a26374ff29c014e49604035c)=