(va_start): Add __builtin_next_arg call.
authorJim Wilson <wilson@gcc.gnu.org>
Mon, 6 Feb 1995 20:22:23 +0000 (12:22 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 6 Feb 1995 20:22:23 +0000 (12:22 -0800)
From-SVN: r8877

gcc/ginclude/va-i960.h

index 66c1474c9a4b00052259f931279e4a2eb6b2b7d6..7f4ab758131f9e18f9391fd2797bc43bff10c637 100644 (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