r251489 - in /trunk/gcc: ChangeLog config/sparc...
rsandifo@gcc.gnu.org
rsandifo@gcc.gnu.org
Wed Aug 30 11:14:00 GMT 2017
Author: rsandifo
Date: Wed Aug 30 11:14:32 2017
New Revision: 251489
URL: https://gcc.gnu.org/viewcvs?rev=251489&root=gcc&view=rev
Log:
[37/77] Use scalar_int_mode when emitting cstores
cstore patterns always have a scalar integer result, which has the
value 0 for "false" and STORE_FLAG_VALUE for "true". This patch
makes that explicit using 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/
* target.def (cstore_mode): Return a scalar_int_mode.
* doc/tm.texi: Regenerate.
* config/sparc/sparc.c (sparc_cstore_mode): Return a scalar_int_mode.
* targhooks.h (default_cstore_mode): Likewise.
* targhooks.c (default_cstore_mode): Likewise, using a forced
conversion.
* expmed.c (emit_cstore): Expect the target of the cstore to be
a scalar_int_mode.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/sparc/sparc.c
trunk/gcc/doc/tm.texi
trunk/gcc/expmed.c
trunk/gcc/target.def
trunk/gcc/targhooks.c
trunk/gcc/targhooks.h
More information about the Gcc-cvs
mailing list