diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2003-11-01 22:00:33 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2003-11-01 17:00:33 -0500 |
commit | 2f7b62efc51dd853ab5fa6e36cc0d15c831d6796 (patch) | |
tree | bdfdefee34da587b8935031d39d5da45de0b48f0 /gcc | |
parent | ab08fce55ba14f6362bb859c49b9316f34a062fd (diff) | |
download | gcc-2f7b62efc51dd853ab5fa6e36cc0d15c831d6796.zip gcc-2f7b62efc51dd853ab5fa6e36cc0d15c831d6796.tar.gz gcc-2f7b62efc51dd853ab5fa6e36cc0d15c831d6796.tar.bz2 |
rs6000.c (rs6000_mixed_function_arg): Correct no_units calculation.
* config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
no_units calculation.
From-SVN: r73182
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bb6e8fd..a15320e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-11-01 Fariborz Jahanian <fjahanian@apple.com> + + * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct + no_units calculation. + 2003-11-01 Andreas Jaeger <aj@suse.de> * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 5abfc09..8c042b5 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -4017,7 +4017,7 @@ rs6000_mixed_function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, { int k; int size = int_size_in_bytes (type); - int no_units = size / 4; + int no_units = ((size - 1) / 4) + 1; int max_no_words = GP_ARG_NUM_REG - align_words; int rtlvec_len = no_units < max_no_words ? no_units : max_no_words; rtx *rtlvec = (rtx *) alloca (rtlvec_len * sizeof (rtx)); |