diff options
author | Paul Brook <paul@codesourcery.com> | 2006-02-01 19:44:47 +0000 |
---|---|---|
committer | Paul Brook <pbrook@gcc.gnu.org> | 2006-02-01 19:44:47 +0000 |
commit | 3f9e6aeda669b07b8f9dd2b93deda2f4bcc3ce86 (patch) | |
tree | 48daff7f42bc9bf65eb2c0c19a65b31cff51cccb /gcc/expr.c | |
parent | 1832d32628764c218bb69a829fb0590594899bab (diff) | |
download | gcc-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/expr.c')
-rw-r--r-- | gcc/expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -6774,7 +6774,8 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, /* Get the signedness used for this variable. Ensure we get the same mode we got when the variable was declared. */ pmode = promote_mode (type, DECL_MODE (exp), &unsignedp, - (TREE_CODE (exp) == RESULT_DECL ? 1 : 0)); + (TREE_CODE (exp) == RESULT_DECL + || TREE_CODE (exp) == PARM_DECL) ? 1 : 0); gcc_assert (GET_MODE (DECL_RTL (exp)) == pmode); temp = gen_lowpart_SUBREG (mode, DECL_RTL (exp)); |