Commit 168c4006 by Richard Stallman

*** empty log message ***

From-SVN: r1088
parent 178c39f6
......@@ -9,9 +9,6 @@
#define __va_ellipsis
#endif
#define va_alist __builtin_va_alist
#define va_dcl char *__builtin_va_alist; __va_ellipsis
/* The first element is the address of the first argument.
The second element is the number of bytes skipped past so far. */
typedef unsigned va_list[2];
......@@ -28,6 +25,9 @@ typedef unsigned va_list[2];
#define va_start(AP, LASTARG) ((AP)[1] = 0, \
*(AP) = (unsigned) __builtin_next_arg ())
#else
#define va_alist __builtin_va_alist
#define va_dcl char *__builtin_va_alist; __va_ellipsis
#define va_start(AP) ((AP)[1] = 0, *(AP) = (unsigned) &va_alist)
#endif
......
......@@ -19,8 +19,6 @@
#define __va_ellipsis
#endif
#define va_alist __builtin_va_alist
#define va_dcl int __builtin_va_alist; __va_ellipsis
#ifndef _VA_LIST_
#define _VA_LIST_
/* Make this a macro rather than a typedef, so we can undef any other defn. */
......@@ -35,6 +33,8 @@ typedef char * __va___list;
#define va_start(AP, LASTARG) \
(AP = ((char *) &(LASTARG) + __va_rounded_size (LASTARG)))
#else
#define va_alist __builtin_va_alist
#define va_dcl int __builtin_va_alist; __va_ellipsis
#define va_start(AP) AP = (char *) &__builtin_va_alist
#endif
......
......@@ -16,14 +16,14 @@ typedef char * __va___list;
#define __va_ellipsis
#endif
#define va_alist __builtin_va_alist
/* The ... causes current_function_varargs to be set in cc1. */
#define va_dcl int __builtin_va_alist; __va_ellipsis
#ifdef _STDARG_H
#define va_start(AP, LASTARG) \
(__builtin_saveregs (), AP = ((char *) __builtin_next_arg ()))
#else
#define va_alist __builtin_va_alist
/* The ... causes current_function_varargs to be set in cc1. */
#define va_dcl int __builtin_va_alist; __va_ellipsis
#define va_start(AP) \
(__builtin_saveregs (), (AP) = ((char *) &__builtin_va_alist))
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment