Module Name:    src
Committed By:   drochner
Date:           Tue Aug 18 17:40:39 UTC 2009

Modified Files:
        src/sys/arch/i386/include: stdarg.h

Log Message:
use __builtin_va_start rather than __builtin_stdarg_start for gcc>=4.1,
I don't know why it was made that inconsistent at that time, but
the in-tree gcc-4.1 works with that, and gcc-4.4.1 removes builtin
support for old style varargs.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/i386/include/stdarg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/i386/include/stdarg.h
diff -u src/sys/arch/i386/include/stdarg.h:1.22 src/sys/arch/i386/include/stdarg.h:1.23
--- src/sys/arch/i386/include/stdarg.h:1.22	Sat Jun 21 00:56:39 2008
+++ src/sys/arch/i386/include/stdarg.h	Tue Aug 18 17:40:39 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: stdarg.h,v 1.22 2008/06/21 00:56:39 gmcgarry Exp $	*/
+/*	$NetBSD: stdarg.h,v 1.23 2009/08/18 17:40:39 drochner Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993
@@ -47,7 +47,12 @@
 #define	__builtin_va_copy(d, s)		((d) = (s))
 #endif
 
-#if __GNUC_PREREQ__(2, 96)
+#if __GNUC_PREREQ__(4, 1)
+#define va_start(ap, last)	__builtin_va_start((ap), (last))
+#define va_arg			__builtin_va_arg
+#define va_end			__builtin_va_end
+#define __va_copy(dest, src)	__builtin_va_copy((dest), (src))
+#elif __GNUC_PREREQ__(2, 96)
 #define	va_start(ap, last)	__builtin_stdarg_start((ap), (last))
 #define	va_arg			__builtin_va_arg
 #define	va_end			__builtin_va_end

Reply via email to