aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorKugan Vivekanandarajah <kuganv@linaro.org>2014-09-10 00:19:23 +0000
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>2014-09-10 00:19:23 +0000
commit27be0c3223f143869834f6fc3ca55db940c3d1f4 (patch)
treed053786efdea9dc7eae9d5703e0ec0f6b7bb2843 /gcc/cfgexpand.c
parent6e8962a5a0dbeb650af286b4a21b7dfe76661e4a (diff)
downloadgcc-27be0c3223f143869834f6fc3ca55db940c3d1f4.zip
gcc-27be0c3223f143869834f6fc3ca55db940c3d1f4.tar.gz
gcc-27be0c3223f143869834f6fc3ca55db940c3d1f4.tar.bz2
revert: calls.c (precompute_arguments): Check promoted_for_signed_and_unsigned_p and set the promoted mode.
gcc/ChangeLog: 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org> Revert r213751: * calls.c (precompute_arguments): Check promoted_for_signed_and_unsigned_p and set the promoted mode. (promoted_for_signed_and_unsigned_p): New function. (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p and set the promoted mode. * expr.h (promoted_for_signed_and_unsigned_p): New function definition. * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED. From-SVN: r215100
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index db76897..8916305 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -3325,13 +3325,7 @@ expand_gimple_stmt_1 (gimple stmt)
GET_MODE (target), temp, unsignedp);
}
- if ((SUBREG_PROMOTED_GET (target) == SRP_SIGNED_AND_UNSIGNED)
- && (GET_CODE (temp) == SUBREG)
- && (GET_MODE (target) == GET_MODE (temp))
- && (GET_MODE (SUBREG_REG (target)) == GET_MODE (SUBREG_REG (temp))))
- emit_move_insn (SUBREG_REG (target), SUBREG_REG (temp));
- else
- convert_move (SUBREG_REG (target), temp, unsignedp);
+ convert_move (SUBREG_REG (target), temp, unsignedp);
}
else if (nontemporal && emit_storent_insn (target, temp))
;