Source-Changes-HG archive

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

[src/trunk]: src/sys/arch port to GCC 4.5.



details:   https://anonhg.NetBSD.org/src/rev/94b8621fea86
branches:  trunk
changeset: 767009:94b8621fea86
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Jul 07 01:27:13 2011 +0000

description:
port to GCC 4.5.

diffstat:

 sys/arch/alpha/include/stdarg.h |  6 +++++-
 sys/arch/hppa/include/stdarg.h  |  7 ++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r c1ff2737038f -r 94b8621fea86 sys/arch/alpha/include/stdarg.h
--- a/sys/arch/alpha/include/stdarg.h   Thu Jul 07 01:26:55 2011 +0000
+++ b/sys/arch/alpha/include/stdarg.h   Thu Jul 07 01:27:13 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stdarg.h,v 1.18 2005/12/11 12:16:16 christos Exp $ */
+/* $NetBSD: stdarg.h,v 1.19 2011/07/07 01:27:13 mrg Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -45,7 +45,11 @@
 #define        va_end(a)               /* nothing */
 #else /* !__lint__ */
 #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))
diff -r c1ff2737038f -r 94b8621fea86 sys/arch/hppa/include/stdarg.h
--- a/sys/arch/hppa/include/stdarg.h    Thu Jul 07 01:26:55 2011 +0000
+++ b/sys/arch/hppa/include/stdarg.h    Thu Jul 07 01:27:13 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.5 2005/12/11 12:17:37 christos Exp $      */
+/*     $NetBSD: stdarg.h,v 1.6 2011/07/07 01:27:13 mrg Exp $   */
 
 /*     $OpenBSD: stdarg.h,v 1.2 1998/11/23 03:28:23 mickey Exp $       */
 
@@ -44,12 +44,17 @@
 #ifdef __lint__
 #define __builtin_next_arg(t)          ((t) ? 0 : 0)
 #define        __builtin_stdarg_start(a, l)    ((a) = (va_list)(void *)&(l))
+#define        __builtin_va_start(a, l)        ((a) = (va_list)(void *)&(l))
 #define        __builtin_va_arg(a, t)          ((a) ? (t) 0 : (t) 0)
 #define        __builtin_va_end(a)             /* nothing */
 #define        __builtin_va_copy(d, s)         ((d) = (s))
 #endif /* __lint__ */
 
+#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))



Home | Main Index | Thread Index | Old Index