Module Name:    src
Committed By:   mrg
Date:           Sun Jul  3 06:45:51 UTC 2011

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

Log Message:
add GCC 4.5 support.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/sh3/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/sh3/include/stdarg.h
diff -u src/sys/arch/sh3/include/stdarg.h:1.9 src/sys/arch/sh3/include/stdarg.h:1.10
--- src/sys/arch/sh3/include/stdarg.h:1.9	Sun May 21 22:39:04 2006
+++ src/sys/arch/sh3/include/stdarg.h	Sun Jul  3 06:45:50 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: stdarg.h,v 1.9 2006/05/21 22:39:04 uwe Exp $	*/
+/*	$NetBSD: stdarg.h,v 1.10 2011/07/03 06:45:50 mrg Exp $	*/
 
 /*
  * Copyright (c) 1991, 1993
@@ -42,13 +42,18 @@
 #ifdef __lint__
 #define __builtin_next_arg(t)		((t) ? 0 : 0)
 #define	__builtin_stdarg_start(a, l)	((a) = ((l) ? 0 : 0))
+#define	__builtin_va_start(a, l)	((a) = ((l) ? 0 : 0))
 #define	__builtin_va_arg(a, t)		((t)((a) ? 0 : 0))
 #define	__builtin_va_end		/* nothing */
 #define	__builtin_va_copy(d, s)		((d) = (s))
 #endif
 
 #if __GNUC_PREREQ__(2, 96)
+#if __GNUC_PREREQ__(4, 5)
+#define	va_start(ap, last)	__builtin_va_start((ap), (last))
+#else
 #define	va_start(ap, last)	__builtin_stdarg_start((ap), (last))
+#endif
 #define	va_arg			__builtin_va_arg
 #define	va_end			__builtin_va_end
 #define	__va_copy(dest, src)	__builtin_va_copy((dest), (src))

Reply via email to