From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C6F4E3858C78; Mon, 4 Dec 2023 08:40:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C6F4E3858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701679241; bh=dsSzJaKSXzs5SXoKxirNDM3Ft60uCrhpDi3WQLRfkwA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IMo1N7jKeO+5tWGHnFk2nVePZKQEE9tiAWkR1re3//s0FLOXiIn1Hopk45EnpmEPF eIWVDvMROGKX//BtaAR+Y2iZO1iqRIVGmozRGeSZhUVQcA4VMElxx0uv4ME0qK2Y12 1cWqg92j4fH+UEvcxHYvpwAHsTw/kGbyGgiYp3p8= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/112830] internal compiler error: in convert_memory_address_addr_space_1, at explow.cc:302 Date: Mon, 04 Dec 2023 08:40:37 +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: 14.0 X-Bugzilla-Keywords: addr-space, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cc 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=3D112830 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #4 from Richard Biener --- @defmac POINTERS_EXTEND_UNSIGNED A C expression that determines how pointers should be extended from @code{ptr_mode} to either @code{Pmode} or @code{word_mode}. It is greater than zero if pointers should be zero-extended, zero if they=20=20 should be sign-extended, and negative if some other sort of conversion is needed. In the last case, the extension is done by the target's @code{ptr_extend} instruction. You need not define this macro if the @code{ptr_mode}, @code{Pmode} and @code{word_mode} are all the same width. @end defmac so you _need_ to define POINTERS_EXTEND_UNSIGNED given that obviously the modes are not the same. The other possibility is that the caller passes in the wrong modes for the address-space in question or it uses the wrong function - the function is for converting of ptr_mode <-> Pmode of the _same_ address-space, but guessing from the source we are converting from different address-spaces.=