From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 07D3F3858CDA; Mon, 5 Sep 2022 16:25:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07D3F3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662395117; bh=S3dUuhtEVYQkcwW56V5iH6n3EXnDv4DXn/bqCm7Tg90=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Fh7mjGThD4TD1SfMdQGPzNBL6pr5RFfWKhAi3Yieg4s69//33X7L7aQ0koyPWbx45 YwibfacbTLUjlwkne86iu0cbAsxzz7Iif5OCB9LL+tUGSSg6aIcB2XHAPYbseieYIa z3vUS+u3s5ZZ2YNsmehsf0QP6Kn8Pu7xAxikuEqA= From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/106833] Handle OPAQUE_TYPE in gimple_canonical_types_compatible_p Date: Mon, 05 Sep 2022 16:25:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-checking X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D106833 --- Comment #7 from Segher Boessenkool --- (In reply to rguenther@suse.de from comment #6) > Ah, that special "mode". I think verify_types shouldn't do anything > for OPAQUE_TYPES or alternatively trust the targets setup of > TYPE_MAIN_VARIANT/TYPE_CANONICAL. Maybe verify TYPE_CANONICAL > and TYPE_MAIN_VARIANT are also OPAQUE_TYPE. It's probably easiest to just test if the TYPE_MODEs match, for OPAQUE_TYPE= s? > So the solution should be fully inside verify_type. Yeah. OPAQUE might be a "hack" (or call it an "invention" :-) ), but the n= ice thing about is it is very self-contained, no interactions anywhere. That is the point even :-)=