diff options
Diffstat (limited to 'gcc/ginclude')
-rw-r--r-- | gcc/ginclude/stdarg.h | 6 | ||||
-rw-r--r-- | gcc/ginclude/varargs.h | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h index f817c0b2b78..3b3fdf5cc7f 100644 --- a/gcc/ginclude/stdarg.h +++ b/gcc/ginclude/stdarg.h @@ -44,6 +44,9 @@ #ifdef __sh__ #include "va-sh.h" #else +#ifdef __mn10300__ +#include "va-mn10300.h" +#else /* Define __gnuc_va_list. */ @@ -81,7 +84,7 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */ /* We cast to void * and then to TYPE * because this avoids a warning about increasing the alignment requirement. */ -#if defined (__arm__) || defined (__i386__) || defined (__i860__) || defined (__ns32000__) || defined (__vax__) || defined (__mn10300__) +#if defined (__arm__) || defined (__i386__) || defined (__i860__) || defined (__ns32000__) || defined (__vax__) /* This is for little-endian machines; small args are padded upward. */ #define va_arg(AP, TYPE) \ (AP = (__gnuc_va_list) ((char *) (AP) + __va_rounded_size (TYPE)), \ @@ -100,6 +103,7 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */ #endif /* _STDARG_H */ +#endif /* not mn10300 */ #endif /* not sh */ #endif /* not powerpc with V.4 calling sequence */ #endif /* not h8300 */ diff --git a/gcc/ginclude/varargs.h b/gcc/ginclude/varargs.h index 4f3b8a3a538..c8fa2059deb 100644 --- a/gcc/ginclude/varargs.h +++ b/gcc/ginclude/varargs.h @@ -42,6 +42,9 @@ #ifdef __sh__ #include "va-sh.h" #else +#ifdef __mn10300__ +#include "va-mn10300.h" +#else #ifdef __NeXT__ @@ -100,7 +103,7 @@ typedef void *__gnuc_va_list; (((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int)) #endif -#if defined (__arm__) || defined (__i386__) || defined (__i860__) || defined (__ns32000__) || defined (__vax__) || defined (__mn10300__) +#if defined (__arm__) || defined (__i386__) || defined (__i860__) || defined (__ns32000__) || defined (__vax__) /* This is for little-endian machines; small args are padded upward. */ #define va_arg(AP, TYPE) \ (AP = (__gnuc_va_list) ((char *) (AP) + __va_rounded_size (TYPE)), \ @@ -117,6 +120,7 @@ typedef void *__gnuc_va_list; /* Copy __gnuc_va_list into another variable of this type. */ #define __va_copy(dest, src) (dest) = (src) +#endif /* not mn10300 */ #endif /* not sh */ #endif /* not powerpc with V.4 calling sequence */ #endif /* not h8300 */ |