From 7e7d1b4b3f489aa357f5ba5979712bd2420ffd50 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 11 Jul 2004 04:11:36 -0700 Subject: [PATCH] expr.c (store_expr): Don't fiddle subreg promotion for types with precision smaller than the mode. * expr.c (store_expr): Don't fiddle subreg promotion for types with precision smaller than the mode. From-SVN: r84501 --- gcc/ChangeLog | 5 +++++ gcc/expr.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b6d3bdf3d24..295dba33903 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-07-11 Richard Henderson + + * expr.c (store_expr): Don't fiddle subreg promotion for types + with precision smaller than the mode. + 2004-07-11 Joseph S. Myers * tree.h (all_types_permanent): Remove. 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)) -- 2.30.2