(va_start): Add __builtin_next_arg call.

From-SVN: r8877
This commit is contained in:
Jim Wilson 1995-02-06 12:22:23 -08:00
parent 29d306d0cb
commit a343d37151
1 changed files with 4 additions and 1 deletions

View File

@ -36,9 +36,12 @@ typedef unsigned __gnuc_va_list[2];
#endif
#ifdef _STDARG_H
/* Call __builtin_next_arg even though we aren't using its value, so that
we can verify that firstarg is correct. */
#define va_start(AP, LASTARG) \
__extension__ \
({ __asm__ ("st g14,%0" : "=m" (*(AP))); \
({ __builtin_next_arg (LASTARG); \
__asm__ ("st g14,%0" : "=m" (*(AP))); \
(AP)[1] = (__builtin_args_info (0) + __builtin_args_info (1)) * 4; })
#else