diff options
author | Clinton Popetz <cpopetz@cygnus.com> | 2000-01-14 21:19:51 +0000 |
---|---|---|
committer | Clinton Popetz <cpopetz@gcc.gnu.org> | 2000-01-14 16:19:51 -0500 |
commit | 5e4f624424df8c5a8a6a6a7a7f9b0709d4f1213e (patch) | |
tree | f9a35a30ce0a91f50eb0507d969b47230adec015 /gcc/builtins.c | |
parent | 06be917325903b12e7d679c65c9213b7880f3f9f (diff) | |
download | gcc-5e4f624424df8c5a8a6a6a7a7f9b0709d4f1213e.zip gcc-5e4f624424df8c5a8a6a6a7a7f9b0709d4f1213e.tar.gz gcc-5e4f624424df8c5a8a6a6a7a7f9b0709d4f1213e.tar.bz2 |
builtins.c (PAD_VARARGS_DOWN): Define.
* builtins.c (PAD_VARARGS_DOWN): Define.
(std_expand_builtin_va_arg): Use the above macro.
* config/mips/mips.c (PAD_VARARGS_DOWN): Define.
* tm.texi (Register Arguments): Document the above macro.
From-SVN: r31421
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 7bfe10d..1ca5b5d 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -51,6 +51,10 @@ Boston, MA 02111-1307, USA. */ #define OUTGOING_REGNO(IN) (IN) #endif +#ifndef PAD_VARARGS_DOWN +#define PAD_VARARGS_DOWN BYTES_BIG_ENDIAN +#endif + tree (*lang_type_promotes_to) PARAMS ((tree)); static int get_pointer_alignment PARAMS ((tree, unsigned)); @@ -1967,7 +1971,7 @@ std_expand_builtin_va_arg (valist, type) /* Get AP. */ addr_tree = valist; - if (BYTES_BIG_ENDIAN) + if (PAD_VARARGS_DOWN) { /* Small args are padded downward. */ |