From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 98D213858403; Tue, 16 Jan 2024 09:12:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98D213858403 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705396323; bh=kFHwHijpF38W7LkT4SCdso4d39qZfOjg39D85wwOTvY=; h=From:To:Subject:Date:From; b=V+/ga2+U163wkcLaNd9Neu3sOw1Vlsvvh69w3AFKJVuvmhW3L3iVLmxL6pzFljc72 DOu63BRAiykLCTvhIIHrJqh1CDQ9ujcmboCxz92cwRht+wyVNN0C2f4DDjWjCu3IdR Hi7K+DFuuZayYEIK0SamR0oNn9kyF+ZD9VADitiU= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113417] New: POINTERS_EXTEND_UNSIGNED needs to be address-space specific Date: Tue, 16 Jan 2024 09:12:01 +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=3D113417 Bug ID: 113417 Summary: POINTERS_EXTEND_UNSIGNED needs to be address-space specific 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: --- For pointer-to-integer conversions we need to know whether to sign- or zero-extend. For the default address-space using ptr_mode (or address-spac= es using ptr_mode and Pmode/word_mode) this is determined by POINTERS_EXTEND_UNSIGNED. For address-spaces not adhering to that constrai= nt we have no idea. POINTERS_EXTEND_UNSIGNED should be remove in favor of a TARGET_ADDR_SPACE_POINTERS_EXTEND_UNSIGNED hook specifying the address-space.=