This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [32/77] Check is_a <scalar_int_mode> before calling valid_pointer_mode
- From: Jeff Law <law at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, richard dot sandiford at linaro dot org
- Date: Mon, 14 Aug 2017 14:47:04 -0600
- Subject: Re: [32/77] Check is_a <scalar_int_mode> before calling valid_pointer_mode
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=law at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com EB4A57F7DA
- References: <8760ewohsv.fsf@linaro.org> <87bmooiuv5.fsf@linaro.org>
On 07/13/2017 02:50 AM, Richard Sandiford wrote:
> A future patch will make valid_pointer_mode take a scalar_int_mode
> instead of a machine_mode. is_a <...> rather than as_a <...> is
> needed here because we're checking a mode supplied by the user.
>
> 2017-07-13 Richard Sandiford <richard.sandiford@linaro.org>
> Alan Hayward <alan.hayward@arm.com>
> David Sherwood <david.sherwood@arm.com>
>
> gcc/c-family/
> * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
> before calling targetm.addr_space.valid_pointer_mode.
OK.
jeff