diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-07 05:34:30 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-07 05:34:30 +0000 |
commit | ed4b0b7571345f7b0a107b279a70da609a02a7cc (patch) | |
tree | eda689a8e928119de5a8f2c187f0a1f9a7d6ac62 /gcc/function.c | |
parent | b569c6768ab6203dbb520e122065ee671abcf299 (diff) | |
download | gcc-ed4b0b7571345f7b0a107b279a70da609a02a7cc.tar.gz |
PR target/16815
* function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
check.
* config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
function_arg_padding.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88660 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/function.c b/gcc/function.c index 0545b05a5cd..4c8d6c409c1 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -2513,8 +2513,12 @@ assign_parm_setup_block_p (struct assign_parm_data_one *data) return true; #ifdef BLOCK_REG_PADDING - if (data->locate.where_pad == (BYTES_BIG_ENDIAN ? upward : downward) - && GET_MODE_SIZE (data->promoted_mode) < UNITS_PER_WORD) + /* Only assign_parm_setup_block knows how to deal with register arguments + that are padded at the least significant end. */ + if (REG_P (data->entry_parm) + && GET_MODE_SIZE (data->promoted_mode) < UNITS_PER_WORD + && (BLOCK_REG_PADDING (data->passed_mode, data->passed_type, 1) + == (BYTES_BIG_ENDIAN ? upward : downward))) return true; #endif |