change __va_list's "offset" field to be a 'int' to match what gcc now
uses, plus add a compatibility hack so that code compiled with old versions of gcc (e.g. libraries) can work with code compiled with new versions.
This commit is contained in:
parent
f9af6f1e41
commit
6d0af59ad0
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ansi.h,v 1.4 1996/03/16 01:31:45 jtc Exp $ */
|
||||
/* $NetBSD: ansi.h,v 1.5 1996/10/09 21:13:04 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -54,7 +54,8 @@
|
||||
#define _BSD_TIME_T_ int /* time() */
|
||||
typedef struct {
|
||||
char *base;
|
||||
long offset;
|
||||
int offset;
|
||||
int pad;
|
||||
} __va_list;
|
||||
#define _BSD_VA_LIST_ __va_list /* va_list */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: stdarg.h,v 1.3 1995/12/26 00:15:47 mycroft Exp $ */
|
||||
/* $NetBSD: stdarg.h,v 1.4 1996/10/09 21:13:05 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
@ -46,7 +46,7 @@ typedef _BSD_VA_LIST_ va_list;
|
||||
(((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
|
||||
|
||||
#define va_start(ap, last) \
|
||||
(__builtin_next_arg(last), (ap) = *(va_list *)__builtin_saveregs())
|
||||
(__builtin_next_arg(last), (ap) = *(va_list *)__builtin_saveregs(), (ap).pad = 0)
|
||||
|
||||
#define __REAL_TYPE_CLASS 8
|
||||
#define __va_arg_offset(ap, type) \
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: varargs.h,v 1.4 1995/12/26 01:16:24 mycroft Exp $ */
|
||||
/* $NetBSD: varargs.h,v 1.5 1996/10/09 21:13:05 cgd Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -56,6 +56,6 @@
|
||||
|
||||
#undef va_start
|
||||
#define va_start(ap) \
|
||||
((ap) = *(va_list *)__builtin_saveregs())
|
||||
((ap) = *(va_list *)__builtin_saveregs(), (ap).pad = 0)
|
||||
|
||||
#endif /* !_ALPHA_VARARGS_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user