r251481 - in /trunk/gcc: ChangeLog dwarf2out.c

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Wed Aug 30 11:12:00 GMT 2017


Author: rsandifo
Date: Wed Aug 30 11:12:28 2017
New Revision: 251481

URL: https://gcc.gnu.org/viewcvs?rev=251481&root=gcc&view=rev
Log:
[29/77] Make some *_loc_descriptor helpers take scalar_int_mode

The *_loc_descriptor routines for clz, popcount, bswap and rotate
all required SCALAR_INT_MODE_P.  This patch moves the checks into
the caller (mem_loc_descriptor) so that the types of the mode
parameters can be scalar_int_mode instead of machine_mode.

The MOD handling in mem_loc_descriptor is also specific to
scalar integer modes.  Adding an explicit check allows
typed_binop to take a scalar_int_mode too.

2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
	    Alan Hayward  <alan.hayward@arm.com>
	    David Sherwood  <david.sherwood@arm.com>

gcc/
	* dwarf2out.c (typed_binop): Change mode parameter to scalar_int_mode.
	(clz_loc_descriptor): Likewise.  Remove SCALAR_INT_MODE_P check.
	(popcount_loc_descriptor): Likewise.
	(bswap_loc_descriptor): Likewise.
	(rotate_loc_descriptor): Likewise.
	(mem_loc_descriptor): Add is_a <scalar_int_mode> checks before
	calling the functions above.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c



More information about the Gcc-cvs mailing list