OSDN Git Service

* config/mips/mips.c (mips_arg_info): Use FUNCTION_ARG_BOUNDARY to
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Dec 2004 08:55:05 +0000 (08:55 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Dec 2004 08:55:05 +0000 (08:55 +0000)
decide whether an argument is double-word aligned.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92182 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/mips.c

index 2639ad5..6feb09b 100644 (file)
@@ -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.
index d3b5faa..568bb8b 100644 (file)
@@ -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,