From eef5d0d1b9f1d3159383c54b513a9633356dbcbc Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 15 Dec 2004 08:55:05 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mips.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2639ad5a786..6feb09b5a90 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-12-15 Richard Sandiford + + * 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 * 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 d3b5faa53c2..568bb8bed40 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, -- 2.30.2