From 0c00214737e93a25e6bc80845281d818b867c536 Mon Sep 17 00:00:00 2001 From: mycroft Date: Tue, 26 Dec 1995 00:19:09 +0000 Subject: [PATCH] Use __builtin_va_alist. --- sys/arch/i386/include/varargs.h | 7 ++++--- sys/arch/m68k/include/varargs.h | 7 ++++--- sys/arch/mips/include/varargs.h | 7 ++++--- sys/arch/pc532/include/varargs.h | 7 ++++--- sys/arch/pmax/include/varargs.h | 7 ++++--- sys/arch/sparc/include/varargs.h | 7 ++++--- sys/arch/vax/include/varargs.h | 7 ++++--- 7 files changed, 28 insertions(+), 21 deletions(-) diff --git a/sys/arch/i386/include/varargs.h b/sys/arch/i386/include/varargs.h index 953a594498dd..5d80eb9f17fd 100644 --- a/sys/arch/i386/include/varargs.h +++ b/sys/arch/i386/include/varargs.h @@ -1,4 +1,4 @@ -/* $NetBSD: varargs.h,v 1.12 1995/12/25 22:22:04 mycroft Exp $ */ +/* $NetBSD: varargs.h,v 1.13 1995/12/26 00:19:09 mycroft Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -51,10 +51,11 @@ #define __va_ellipsis ... #endif -#define va_dcl va_list va_alist; __va_ellipsis +#define va_alist __builtin_va_alist +#define va_dcl va_list __builtin_va_alist; __va_ellipsis #undef va_start #define va_start(ap) \ - ((ap) = (va_list)&va_alist) + ((ap) = (va_list)&__builtin_va_alist) #endif /* !_I386_VARARGS_H_ */ diff --git a/sys/arch/m68k/include/varargs.h b/sys/arch/m68k/include/varargs.h index 27ff4322eeab..3c40fe7c8045 100644 --- a/sys/arch/m68k/include/varargs.h +++ b/sys/arch/m68k/include/varargs.h @@ -1,4 +1,4 @@ -/* $NetBSD: varargs.h,v 1.12 1995/12/25 22:22:06 mycroft Exp $ */ +/* $NetBSD: varargs.h,v 1.13 1995/12/26 00:19:13 mycroft Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -51,10 +51,11 @@ #define __va_ellipsis ... #endif -#define va_dcl va_list va_alist; __va_ellipsis +#define va_alist __builtin_va_alist +#define va_dcl va_list __builtin_va_alist; __va_ellipsis #undef va_start #define va_start(ap) \ - ((ap) = (va_list)&va_alist) + ((ap) = (va_list)&__builtin_va_alist) #endif /* !_M68K_VARARGS_H_ */ diff --git a/sys/arch/mips/include/varargs.h b/sys/arch/mips/include/varargs.h index d4228f7bb767..972f23297b67 100644 --- a/sys/arch/mips/include/varargs.h +++ b/sys/arch/mips/include/varargs.h @@ -1,4 +1,4 @@ -/* $NetBSD: varargs.h,v 1.10 1995/12/25 22:22:10 mycroft Exp $ */ +/* $NetBSD: varargs.h,v 1.11 1995/12/26 00:19:16 mycroft Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -51,10 +51,11 @@ #define __va_ellipsis ... #endif -#define va_dcl va_list va_alist; __va_ellipsis +#define va_alist __builtin_va_alist +#define va_dcl va_list __builtin_va_alist; __va_ellipsis #undef va_start #define va_start(ap) \ - ((ap) = (va_list)&va_alist) + ((ap) = (va_list)&__builtin_va_alist) #endif /* !_PMAX_VARARGS_H_ */ diff --git a/sys/arch/pc532/include/varargs.h b/sys/arch/pc532/include/varargs.h index 3e525a50cc69..b2a558d43a9e 100644 --- a/sys/arch/pc532/include/varargs.h +++ b/sys/arch/pc532/include/varargs.h @@ -1,4 +1,4 @@ -/* $NetBSD: varargs.h,v 1.10 1995/12/25 22:22:08 mycroft Exp $ */ +/* $NetBSD: varargs.h,v 1.11 1995/12/26 00:19:14 mycroft Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -51,10 +51,11 @@ #define __va_ellipsis ... #endif -#define va_dcl va_list va_alist; __va_ellipsis +#define va_alist __builtin_va_alist +#define va_dcl va_list __builtin_va_alist; __va_ellipsis #undef va_start #define va_start(ap) \ - ((ap) = (va_list)&va_alist) + ((ap) = (va_list)&__builtin_va_alist) #endif /* !_PC532_VARARGS_H_ */ diff --git a/sys/arch/pmax/include/varargs.h b/sys/arch/pmax/include/varargs.h index d4228f7bb767..972f23297b67 100644 --- a/sys/arch/pmax/include/varargs.h +++ b/sys/arch/pmax/include/varargs.h @@ -1,4 +1,4 @@ -/* $NetBSD: varargs.h,v 1.10 1995/12/25 22:22:10 mycroft Exp $ */ +/* $NetBSD: varargs.h,v 1.11 1995/12/26 00:19:16 mycroft Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -51,10 +51,11 @@ #define __va_ellipsis ... #endif -#define va_dcl va_list va_alist; __va_ellipsis +#define va_alist __builtin_va_alist +#define va_dcl va_list __builtin_va_alist; __va_ellipsis #undef va_start #define va_start(ap) \ - ((ap) = (va_list)&va_alist) + ((ap) = (va_list)&__builtin_va_alist) #endif /* !_PMAX_VARARGS_H_ */ diff --git a/sys/arch/sparc/include/varargs.h b/sys/arch/sparc/include/varargs.h index 0560dd8f4423..0f58108ac5c8 100644 --- a/sys/arch/sparc/include/varargs.h +++ b/sys/arch/sparc/include/varargs.h @@ -1,4 +1,4 @@ -/* $NetBSD: varargs.h,v 1.7 1995/12/25 22:24:56 mycroft Exp $ */ +/* $NetBSD: varargs.h,v 1.8 1995/12/26 00:19:17 mycroft Exp $ */ /* * Copyright (c) 1992, 1993 @@ -60,7 +60,8 @@ #define __va_ellipsis ... #endif -#define va_dcl va_list va_alist; __va_ellipsis +#define va_alist __builtin_va_alist +#define va_dcl va_list __builtin_va_alist; __va_ellipsis #undef va_start #ifdef __GCC_NEW_VARARGS__ @@ -68,7 +69,7 @@ ((ap) = (va_list)__builtin_saveregs()) #else #define va_start(ap) \ - (__builtin_saveregs(), (ap) = (va_list)&va_alist) + (__builtin_saveregs(), (ap) = (va_list)&__builtin_va_alist) #endif #endif /* !_SPARC_VARARGS_H_ */ diff --git a/sys/arch/vax/include/varargs.h b/sys/arch/vax/include/varargs.h index 44e5961a538d..1ea71c847b23 100644 --- a/sys/arch/vax/include/varargs.h +++ b/sys/arch/vax/include/varargs.h @@ -1,4 +1,4 @@ -/* $NetBSD: varargs.h,v 1.7 1995/12/25 22:22:12 mycroft Exp $ */ +/* $NetBSD: varargs.h,v 1.8 1995/12/26 00:19:18 mycroft Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -46,10 +46,11 @@ #define __va_ellipsis ... #endif -#define va_dcl va_list va_alist; __va_ellipsis +#define va_alist __builtin_va_alist +#define va_dcl va_list __builtin_va_alist; __va_ellipsis #undef va_start #define va_start(ap) \ - ((ap) = (va_list)&va_alist) + ((ap) = (va_list)&__builtin_va_alist) #endif /* !_VAX_VARARGS_H_ */