summaryrefslogtreecommitdiff
path: root/gcc/ginclude/varargs.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ginclude/varargs.h')
-rw-r--r--gcc/ginclude/varargs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ginclude/varargs.h b/gcc/ginclude/varargs.h
index cfb5f2308c7..410d06aac69 100644
--- a/gcc/ginclude/varargs.h
+++ b/gcc/ginclude/varargs.h
@@ -115,7 +115,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__)
+#if (defined (__arm__) && ! defined (__ARMEB__)) || 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)), \