From 262088a421f657575ea563ccee61fd38bd7a9e6a Mon Sep 17 00:00:00 2001 From: cpopetz Date: Fri, 14 Jan 2000 21:21:57 +0000 Subject: [PATCH] * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit eabi, and make sure queued POSTINCREMENT rtl is emitted at the right point. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31422 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 8 +++++++- gcc/config/mips/mips.h | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c2ea56d..76fdf3f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,8 +1,14 @@ 2000-01-14 Clinton Popetz + * config/mips/mips.c (mips_va_arg): Fix fprv for the 32 bit + eabi, and make sure queued POSTINCREMENT rtl is emitted at + the right point. + +2000-01-14 Clinton Popetz + * builtins.c (PAD_VARARGS_DOWN): Define. (std_expand_builtin_va_arg): Use the above macro. - * config/mips/mips.c (PAD_VARARGS_DOWN): Define. + * config/mips/mips.h (PAD_VARARGS_DOWN): Define. * tm.texi (Register Arguments): Document the above macro. 2000-01-14 Nick Clifton diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 5e7195ef..b6d7559 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -1,5 +1,5 @@ /* Definitions of target machine for GNU compiler. MIPS version. - Copyright (C) 1989, 90-98, 1999 Free Software Foundation, Inc. + Copyright (C) 1989, 90-98, 1999, 2000 Free Software Foundation, Inc. Contributed by A. Lichnewsky (lich@inria.inria.fr). Changed by Michael Meissner (meissner@osf.org). 64 bit r4000 support by Ian Lance Taylor (ian@cygnus.com) and @@ -1438,6 +1438,11 @@ do { \ || TREE_CODE (TYPE) == UNION_TYPE \ || TREE_CODE (TYPE) == RECORD_TYPE)) ? BITS_PER_WORD : (ALIGN)) + +/* Force right-alignment for small varargs in 32 bit little_endian mode */ + +#define PAD_VARARGS_DOWN (TARGET_64BIT ? BYTES_BIG_ENDIAN : !BYTES_BIG_ENDIAN) + /* Define this macro if an argument declared as `char' or `short' in a prototype should actually be passed as an `int'. In addition to avoiding errors in certain cases of mismatch, it also makes for -- 2.7.4