Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Only use __builtin_va_alist_t if using GCC 2.96 or ...



details:   https://anonhg.NetBSD.org/src/rev/54eb1f9af8d6
branches:  trunk
changeset: 486085:54eb1f9af8d6
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri May 12 23:49:11 2000 +0000

description:
Only use __builtin_va_alist_t if using GCC 2.96 or later.  Fixes
pkg/10080, from Matthias Scheler.

diffstat:

 sys/arch/alpha/include/varargs.h |  10 ++++++++--
 sys/arch/i386/include/varargs.h  |  10 ++++++++--
 2 files changed, 16 insertions(+), 4 deletions(-)

diffs (50 lines):

diff -r 7a4aa3ba6990 -r 54eb1f9af8d6 sys/arch/alpha/include/varargs.h
--- a/sys/arch/alpha/include/varargs.h  Fri May 12 20:54:16 2000 +0000
+++ b/sys/arch/alpha/include/varargs.h  Fri May 12 23:49:11 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: varargs.h,v 1.8 2000/05/10 17:53:45 thorpej Exp $ */
+/* $NetBSD: varargs.h,v 1.9 2000/05/12 23:49:11 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -51,8 +51,14 @@
 #define        __va_ellipsis   ...
 #endif
 
+#if __GNUC_PREREQ__(2, 96)
+#define        __va_alist_t    __builtin_va_alist_t
+#else
+#define        __va_alist_t    long
+#endif
+
 #define        va_alist        __builtin_va_alist
-#define        va_dcl          __builtin_va_alist_t __builtin_va_alist; __va_ellipsis
+#define        va_dcl          __va_alist_t __builtin_va_alist; __va_ellipsis
 
 #undef va_start
 #if __GNUC_PREREQ__(2, 96)
diff -r 7a4aa3ba6990 -r 54eb1f9af8d6 sys/arch/i386/include/varargs.h
--- a/sys/arch/i386/include/varargs.h   Fri May 12 20:54:16 2000 +0000
+++ b/sys/arch/i386/include/varargs.h   Fri May 12 23:49:11 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: varargs.h,v 1.16 2000/05/05 00:21:49 thorpej Exp $     */
+/*     $NetBSD: varargs.h,v 1.17 2000/05/12 23:49:12 thorpej Exp $     */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -51,8 +51,14 @@
 #define        __va_ellipsis   ...
 #endif
 
+#if __GNUC_PREREQ__(2, 96)
+#define        __va_alist_t    __builtin_va_alist_t
+#else
+#define        __va_alist_t    long
+#endif
+
 #define        va_alist        __builtin_va_alist
-#define        va_dcl          __builtin_va_alist_t __builtin_va_alist; __va_ellipsis
+#define        va_dcl          __va_alist_t __builtin_va_alist; __va_ellipsis
 
 #undef va_start
 #if __GNUC_PREREQ__(2, 96)



Home | Main Index | Thread Index | Old Index