aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2005-01-26 15:21:45 -0800
committerRichard Henderson <rth@gcc.gnu.org>2005-01-26 15:21:45 -0800
commiteec6bb06c65297a56eeff3c6bd8e4b31fec554bb (patch)
treec828ac0ac89a98ec49d783702a5abcc79e0be758 /gcc/expr.c
parent78ef1e3d9fbe214ead3c117ec54a5c10da91a0df (diff)
downloadgcc-eec6bb06c65297a56eeff3c6bd8e4b31fec554bb.zip
gcc-eec6bb06c65297a56eeff3c6bd8e4b31fec554bb.tar.gz
gcc-eec6bb06c65297a56eeff3c6bd8e4b31fec554bb.tar.bz2
Revert last change.
From-SVN: r94291
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 1f82b1d..ed693a3 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -5215,21 +5215,7 @@ store_field (rtx target, HOST_WIDE_INT bitsize, HOST_WIDE_INT bitpos,
&& TREE_CODE (TYPE_SIZE (TREE_TYPE (exp))) == INTEGER_CST
&& compare_tree_int (TYPE_SIZE (TREE_TYPE (exp)), bitsize) != 0))
{
- rtx temp;
-
- /* If EXP is a NOP_EXPR of precision less than its mode, then that
- implies a mask operation. If the precision is the same size as
- the field we're storing into, that mask is redundant. This is
- particularly common with bit field assignments generated by the
- C front end. */
- if (TREE_CODE (exp) == NOP_EXPR
- && INTEGRAL_TYPE_P (TREE_TYPE (exp))
- && (TYPE_PRECISION (TREE_TYPE (exp))
- < GET_MODE_BITSIZE (TYPE_MODE (TREE_TYPE (exp))))
- && bitsize == TYPE_PRECISION (TREE_TYPE (exp)))
- exp = TREE_OPERAND (exp, 0);
-
- temp = expand_expr (exp, NULL_RTX, VOIDmode, 0);
+ rtx temp = expand_expr (exp, NULL_RTX, VOIDmode, 0);
/* If BITSIZE is narrower than the size of the type of EXP
we will be narrowing TEMP. Normally, what's wanted are the