https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113417

            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-spaces
using ptr_mode and Pmode/word_mode) this is determined by
POINTERS_EXTEND_UNSIGNED.  For address-spaces not adhering to that constraint
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.

Reply via email to