summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/ginclude/va-h8300.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/ginclude/va-h8300.h')
-rw-r--r--contrib/gcc/ginclude/va-h8300.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/gcc/ginclude/va-h8300.h b/contrib/gcc/ginclude/va-h8300.h
index 986e827..9565696 100644
--- a/contrib/gcc/ginclude/va-h8300.h
+++ b/contrib/gcc/ginclude/va-h8300.h
@@ -44,10 +44,13 @@ typedef void *__gnuc_va_list;
#define va_arg(AP, TYPE) \
(AP = (__gnuc_va_list) ((char *) (AP) + __va_rounded_size (TYPE)), \
- *((TYPE *) (void *) ((char *) (AP) - ((sizeof (TYPE) < 4 \
- ? sizeof (TYPE) \
- : __va_rounded_size (TYPE))))))
+ *((TYPE *) (void *) ((char *) (AP) \
+ - ((sizeof (TYPE) < __va_rounded_size (int) \
+ ? sizeof (TYPE) : __va_rounded_size (TYPE))))))
#define va_end(AP) ((void) 0)
+/* Copy __gnuc_va_list into another variable of this type. */
+#define __va_copy(dest, src) (dest) = (src)
+
#endif /* defined (_STDARG_H) || defined (_VARARGS_H) */
OpenPOWER on IntegriCloud