From 27be0c3223f143869834f6fc3ca55db940c3d1f4 Mon Sep 17 00:00:00 2001 From: Kugan Vivekanandarajah Date: Wed, 10 Sep 2014 00:19:23 +0000 Subject: revert: calls.c (precompute_arguments): Check promoted_for_signed_and_unsigned_p and set the promoted mode. gcc/ChangeLog: 2014-09-10 Kugan Vivekanandarajah 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 --- gcc/calls.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gcc/calls.c') diff --git a/gcc/calls.c b/gcc/calls.c index 03ed9c8..345331f 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -1486,10 +1486,7 @@ precompute_arguments (int num_actuals, struct arg_data *args) args[i].initial_value = gen_lowpart_SUBREG (mode, args[i].value); SUBREG_PROMOTED_VAR_P (args[i].initial_value) = 1; - if (promoted_for_signed_and_unsigned_p (args[i].tree_value, mode)) - SUBREG_PROMOTED_SET (args[i].initial_value, SRP_SIGNED_AND_UNSIGNED); - else - SUBREG_PROMOTED_SET (args[i].initial_value, args[i].unsignedp); + SUBREG_PROMOTED_SET (args[i].initial_value, args[i].unsignedp); } } } -- cgit v1.1