From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 79ACA3857C58; Thu, 8 Sep 2022 14:05:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 79ACA3857C58 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662645908; bh=SEqfHJ5Uhbguil7Kcc8KJDNqCEvR52P5IRsxwWG5eks=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oIdF3+9HlWZMPGaSfnpN4ljfKloZ/R7sPWg+HKctItdR6PHrl2kjYwDpxc7dTKVWa WLHsJ4109Nrs9QTXwF1l5euoLb/qmxrk7/2Yo4DbdTPERbac7u37nQBGnNYZ0gVlxz 4fa/hRbwXwBGZN0lyocaD5Vflp4scEFjHMtuuZXI= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106878] [11/12/13 Regression] ICE: verify_gimple failed at -O2 with pointers and bitwise caluclation Date: Thu, 08 Sep 2022 14:05:07 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D106878 --- Comment #6 from Jakub Jelinek --- Created attachment 53552 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53552&action=3Dedit gcc13-pr106878-3.patch Or we can revert parts of Andrew's change and allow BIT_NOT_EXPR on pointers and OFFSET_TYPE, because it is just weird if the 3 BIT_*_EXPR are inconsite= nt with it. Except this ICEs in the ranger, which wants to treat BIT_NOT_EXPR as ~X is simply -1 - X except that MINUS_EXPR isn't supported on pointers.=