From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D4E183858424; Fri, 5 Apr 2024 07:45:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4E183858424 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712303152; bh=JpNdqHGMxMOwglhfUA3OgElLJKfWg2Wvl8aDSELE0to=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BHwqw4zA+idHCgfC1Clarjd3mm7tMGvNK6U2vCeldBQ1XPqw0Q8IQIb2oRHdfEHmZ aeblEfhRG0rfRbizijo4G+oh3UOiCpmxtGmVlauOYa+IvWqGGid0iCdgAJMaKski9y DOyUgTZuggeu+moTEIT0ERgLBjmfB/VUXiuSKj1k= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/114574] [14 regression] ICE when building curl with LTO (fld_incomplete_type_of, at ipa-free-lang-data.cc:257) since r14-9763 Date: Fri, 05 Apr 2024 07:45:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D114574 --- Comment #19 from Jakub Jelinek --- (In reply to Martin Uecker from comment #18) > I am just looking at a version that would have changed the condition to: >=20 > if (TYPE_MODE (t) =3D=3D mode && TYPE_REF_CAN_ALIAS_ALL (t) =3D=3D can_= alias_all > && TYPE_STRUCTURAL_EQUALITY_P (t) =3D=3D TYPE_STRUCTURAL_EQUALITY_P > (to_type)) That would just keep perhaps lots of pointer types duplicated and no longer usable (so why keep them in the cache then?). I mean, if it is fine to update the base type from TYPE_STRUCTURAL_EQUALITY= _P to some TYPE_CANONICAL, why it wouldn't be ok to update the pointers as well? Also, for in_lto_p pointer types are always TYPE_STRUCTURAL_EQUALITY_P even when to_type is not.=