From fdc829c7fa69cee30a2aa78991b2326593d45d3e Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Sat, 8 May 1999 01:52:36 +0000 Subject: [PATCH] David Edelsohn David Edelsohn * ginclude/stdarg.h (__va_rounded_size): Use long type for rounding on AIX. * ginclude/varargs.h: Likewise. From-SVN: r26837 --- gcc/ChangeLog | 6 ++++++ gcc/ginclude/stdarg.h | 3 +++ gcc/ginclude/varargs.h | 3 +++ 3 files changed, 12 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 578df486f1c..3db908541fc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Sat May 8 01:51:50 1999 David Edelsohn + + * ginclude/stdarg.h (__va_rounded_size): Use long type for + rounding on AIX. + * ginclude/varargs.h: Likewise. + Sat May 8 01:47:20 1999 Andreas Schwab * invoke.texi: Remove duplicates in the description of -d diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h index c9c61567cd8..3607db1de13 100644 --- a/gcc/ginclude/stdarg.h +++ b/gcc/ginclude/stdarg.h @@ -84,6 +84,9 @@ typedef void *__gnuc_va_list; #if defined(sysV68) #define __va_rounded_size(TYPE) \ (((sizeof (TYPE) + sizeof (short) - 1) / sizeof (short)) * sizeof (short)) +#elif defined(_AIX) +#define __va_rounded_size(TYPE) \ + (((sizeof (TYPE) + sizeof (long) - 1) / sizeof (long)) * sizeof (long)) #else #define __va_rounded_size(TYPE) \ (((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int)) diff --git a/gcc/ginclude/varargs.h b/gcc/ginclude/varargs.h index d1704079bda..132d1d13027 100644 --- a/gcc/ginclude/varargs.h +++ b/gcc/ginclude/varargs.h @@ -113,6 +113,9 @@ typedef void *__gnuc_va_list; #if defined(sysV68) #define __va_rounded_size(TYPE) \ (((sizeof (TYPE) + sizeof (short) - 1) / sizeof (short)) * sizeof (short)) +#elif defined(_AIX) +#define __va_rounded_size(TYPE) \ + (((sizeof (TYPE) + sizeof (long) - 1) / sizeof (long)) * sizeof (long)) #else #define __va_rounded_size(TYPE) \ (((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))