From aec30911047d37b9d9c06caa5db277134863982d Mon Sep 17 00:00:00 2001 From: rth Date: Sun, 11 Jul 2004 11:11:36 +0000 Subject: * expr.c (store_expr): Don't fiddle subreg promotion for types with precision smaller than the mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84501 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/expr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/expr.c') diff --git a/gcc/expr.c b/gcc/expr.c index 6806f1f7d25..f9c65485bd2 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -4144,7 +4144,10 @@ store_expr (tree exp, rtx target, int want_value) more than just converting modes. */ if ((want_value & 1) == 0 && INTEGRAL_TYPE_P (TREE_TYPE (exp)) - && TREE_TYPE (TREE_TYPE (exp)) == 0) + && TREE_TYPE (TREE_TYPE (exp)) == 0 + && (!lang_hooks.reduce_bit_field_operations + || (GET_MODE_PRECISION (GET_MODE (target)) + == TYPE_PRECISION (TREE_TYPE (exp))))) { if (TYPE_UNSIGNED (TREE_TYPE (exp)) != SUBREG_PROMOTED_UNSIGNED_P (target)) -- cgit v1.2.1