diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-08-30 11:14:41 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-08-30 11:14:41 +0000 |
commit | 0ef40942d026e60b28d384b0fb2ff203bf1beca1 (patch) | |
tree | 9fb8bcf51f07e829d312f8c9ab92b89b5bd5a54c /gcc/combine.c | |
parent | 7cc237a633b6b488a3950baa23833b6f78e8d26b (diff) | |
download | gcc-0ef40942d026e60b28d384b0fb2ff203bf1beca1.zip gcc-0ef40942d026e60b28d384b0fb2ff203bf1beca1.tar.gz gcc-0ef40942d026e60b28d384b0fb2ff203bf1beca1.tar.bz2 |
[38/77] Move SCALAR_INT_MODE_P out of strict_volatile_bitfield_p
strict_volatile_bitfield_p returns false for any mode that isn't
a scalar integer. This patch moves the check to the caller and
makes strict_volatile_bitfield_p take the mode as a scalar_int_mode.
The handling of a true return can then also use the mode as a
scalar_int_mode.
2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* expmed.c (strict_volatile_bitfield_p): Change the type of fieldmode
to scalar_int_mode. Remove check for SCALAR_INT_MODE_P.
(store_bit_field): Check is_a <scalar_int_mode> before calling
strict_volatile_bitfield_p.
(extract_bit_field): Likewise.
Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r251490
Diffstat (limited to 'gcc/combine.c')
0 files changed, 0 insertions, 0 deletions