projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29d306d
)
(va_start): Add __builtin_next_arg call.
author
Jim Wilson
<wilson@gcc.gnu.org>
Mon, 6 Feb 1995 20:22:23 +0000
(12:22 -0800)
committer
Jim Wilson
<wilson@gcc.gnu.org>
Mon, 6 Feb 1995 20:22:23 +0000
(12:22 -0800)
From-SVN: r8877
gcc/ginclude/va-i960.h
patch
|
blob
|
history
diff --git
a/gcc/ginclude/va-i960.h
b/gcc/ginclude/va-i960.h
index 66c1474c9a4b00052259f931279e4a2eb6b2b7d6..7f4ab758131f9e18f9391fd2797bc43bff10c637 100644
(file)
--- a/
gcc/ginclude/va-i960.h
+++ b/
gcc/ginclude/va-i960.h
@@
-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