aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2002-01-31 01:40:54 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2002-01-31 01:40:54 +0000
commit0b51254df2f85be06aa30d499b6d1d4f01d10873 (patch)
treef67f989f8fb8f4affc8c3dccf9bbce7e3b19a12c /gcc
parent71cef493de2ca62f117c467d6e1436574ea7e76b (diff)
downloadgcc-0b51254df2f85be06aa30d499b6d1d4f01d10873.zip
gcc-0b51254df2f85be06aa30d499b6d1d4f01d10873.tar.gz
gcc-0b51254df2f85be06aa30d499b6d1d4f01d10873.tar.bz2
mips.h (PARM_BOUNDARY): Guarantee alignment of arguments to 64-bit boundaries on 64-bit ABIs.
* config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of arguments to 64-bit boundaries on 64-bit ABIs. From-SVN: r49356
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index eb8865e..74c0c9b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-30 Alexandre Oliva <aoliva@redhat.com>
+
+ * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
+ arguments to 64-bit boundaries on 64-bit ABIs.
+
2002-01-30 Steve Ellcey <sje@cup.hp.com>
* loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index 58fba77..898f9f7 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -1646,7 +1646,9 @@ do { \
#define POINTER_BOUNDARY (Pmode == DImode ? 64 : 32)
/* Allocation boundary (in *bits*) for storing arguments in argument list. */
-#define PARM_BOUNDARY (TARGET_64BIT ? 64 : 32)
+#define PARM_BOUNDARY ((mips_abi == ABI_O64 || mips_abi == ABI_N32 \
+ || mips_abi == ABI_64 \
+ || (mips_abi == ABI_EABI && TARGET_64BIT)) ? 64 : 32)
/* Allocation boundary (in *bits*) for the code of a function. */
#define FUNCTION_BOUNDARY 32