From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E073C3858C5E; Mon, 5 Feb 2024 10:02:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E073C3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707127363; bh=qMTy5sw43mnjJPCM+a8quLDZYHSg0UpjZdnOuFMKNSk=; h=From:To:Subject:Date:From; b=RYQV+J8Yyk4l88eUBcqJe2x6wtXRwL9GxwtAQCZYCGZhdVSK+XSSd/JB1575GO2Lc Zy08ETPjdKRgF1yDzCTVJfDgbADPJI7eNvZjBEs8PPAwY17H4Y7M6rA4eqobHIdX/h ATGIFwJFUh5CjfjuEeH6lL/7Z8B3Ba/0qd1dG0Tg= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113762] New: TYPE_ADDR_SPACE requirements on tcc_reference trees not documented/checked Date: Mon, 05 Feb 2024 10:02:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D113762 Bug ID: 113762 Summary: TYPE_ADDR_SPACE requirements on tcc_reference trees not documented/checked Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- There's not much documentation on what part of a tcc_reference chain (handled_component_p + base) needs to reflect the TYPE_ADDR_SPACE in effect. RTL expansion looks at the base of the chain but for example build_fold_addr_expr_loc simply looks at the outermost object. There's also no IL checking in place to verify consistency within such a ch= ain. And test coverage isn't too great for address-spaces in general.=