diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2004-12-15 08:55:05 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2004-12-15 08:55:05 +0000 |
commit | eef5d0d1b9f1d3159383c54b513a9633356dbcbc (patch) | |
tree | cfd91f6903f81732e1ab074becb862297e0a03a5 | |
parent | 0022b96acb748d48795c577ccad27adcc85e9584 (diff) | |
download | gcc-eef5d0d1b9f1d3159383c54b513a9633356dbcbc.zip gcc-eef5d0d1b9f1d3159383c54b513a9633356dbcbc.tar.gz gcc-eef5d0d1b9f1d3159383c54b513a9633356dbcbc.tar.bz2 |
mips.c (mips_arg_info): Use FUNCTION_ARG_BOUNDARY to decide whether an argument is double-word aligned.
* config/mips/mips.c (mips_arg_info): Use FUNCTION_ARG_BOUNDARY to
decide whether an argument is double-word aligned.
From-SVN: r92182
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2639ad5..6feb09b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-12-15 Richard Sandiford <rsandifo@redhat.com> + + * config/mips/mips.c (mips_arg_info): Use FUNCTION_ARG_BOUNDARY to + decide whether an argument is double-word aligned. + 2004-12-15 Richard Henderson <rth@redhat.com> * config/i386/i386.md: Fix missing modes on cmove splitters. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index d3b5faa..568bb8b 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -3136,9 +3136,7 @@ mips_arg_info (const CUMULATIVE_ARGS *cum, enum machine_mode mode, } /* See whether the argument has doubleword alignment. */ - doubleword_aligned_p = (type - ? TYPE_ALIGN (type) > BITS_PER_WORD - : GET_MODE_UNIT_SIZE (mode) > UNITS_PER_WORD); + doubleword_aligned_p = FUNCTION_ARG_BOUNDARY (mode, type) > BITS_PER_WORD; /* Set REG_OFFSET to the register count we're interested in. The EABI allocates the floating-point registers separately, |