From 7cc237a633b6b488a3950baa23833b6f78e8d26b Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 30 Aug 2017 11:14:32 +0000 Subject: [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 Alan Hayward David Sherwood 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. Co-Authored-By: Alan Hayward Co-Authored-By: David Sherwood From-SVN: r251489 --- gcc/targhooks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/targhooks.h') diff --git a/gcc/targhooks.h b/gcc/targhooks.h index 2ab7eec..7c7e748 100644 --- a/gcc/targhooks.h +++ b/gcc/targhooks.h @@ -232,7 +232,7 @@ extern const char *default_pch_valid_p (const void *, size_t); extern void default_asm_output_ident_directive (const char*); -extern machine_mode default_cstore_mode (enum insn_code); +extern scalar_int_mode default_cstore_mode (enum insn_code); extern bool default_member_type_forces_blk (const_tree, machine_mode); extern void default_atomic_assign_expand_fenv (tree *, tree *, tree *); extern tree build_va_arg_indirect_ref (tree); -- cgit v1.1