This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [12/77] Use opt_scalar_float_mode when iterating over float modes
- 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: Fri, 11 Aug 2017 12:15:01 -0600
- Subject: Re: [12/77] Use opt_scalar_float_mode when iterating over float modes
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx09.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 99EA71441A6
- References: <8760ewohsv.fsf@linaro.org> <87pod4loca.fsf@linaro.org>
On 07/13/2017 02:42 AM, Richard Sandiford wrote:
> This means that we know when accessing the modes that the size is
> a compile-time constant, even for SVE. It also enables stricter
> type safety in later patches.
>
> 2017-07-13 Richard Sandiford <richard.sandiford@linaro.org>
> Alan Hayward <alan.hayward@arm.com>
> David Sherwood <david.sherwood@arm.com>
>
> gcc/
> * machmode.h (mode_iterator::start): Provide overload for opt_modes.
> (mode_iterator::iterate_p): Likewise.
> (mode_iterator::get_wider): Likewise.
> * expr.c (init_expr_target): Use opt_scalar_float_mode.
>
> gcc/ada/
> * gcc-interface/misc.c (fp_prec_to_size): Use opt_scalar_float_mode.
> (fp_size_to_prec): Likewise.
>
> gcc/c-family/
> * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
>
> gcc/fortran/
> * trans-types.c (gfc_init_kinds): Use opt_scalar_float_mode
> and FOR_EACH_MODE_IN_CLASS.
OK.
jeff