This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [12/77] Use opt_scalar_float_mode when iterating over float modes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]