aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2006-02-01 19:44:47 +0000
committerPaul Brook <pbrook@gcc.gnu.org>2006-02-01 19:44:47 +0000
commit3f9e6aeda669b07b8f9dd2b93deda2f4bcc3ce86 (patch)
tree48daff7f42bc9bf65eb2c0c19a65b31cff51cccb /gcc/function.c
parent1832d32628764c218bb69a829fb0590594899bab (diff)
downloadgcc-3f9e6aeda669b07b8f9dd2b93deda2f4bcc3ce86.zip
gcc-3f9e6aeda669b07b8f9dd2b93deda2f4bcc3ce86.tar.gz
gcc-3f9e6aeda669b07b8f9dd2b93deda2f4bcc3ce86.tar.bz2
function.c (assign_parm_setup_reg): Use function argument promotion rules.
2006-02-01 Paul Brook <paul@codesourcery.com> * function.c (assign_parm_setup_reg): Use function argument promotion rules. * expr.c (expand_expr_real_1): Use function argument promotion rules for PARM_DECLs. From-SVN: r110477
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 9ff5ce6..61ee421 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -2624,8 +2624,10 @@ assign_parm_setup_reg (struct assign_parm_data_all *all, tree parm,
/* Store the parm in a pseudoregister during the function, but we may
need to do it in a wider mode. */
+ /* This is not really promoting for a call. However we need to be
+ consistent with assign_parm_find_data_types and expand_expr_real_1. */
promoted_nominal_mode
- = promote_mode (data->nominal_type, data->nominal_mode, &unsignedp, 0);
+ = promote_mode (data->nominal_type, data->nominal_mode, &unsignedp, 1);
parmreg = gen_reg_rtx (promoted_nominal_mode);