Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch add GCC 4.5 support
details: https://anonhg.NetBSD.org/src/rev/c03e38dbae44
branches: trunk
changeset: 766718:c03e38dbae44
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Jul 01 01:26:38 2011 +0000
description:
add GCC 4.5 support
diffstat:
sys/arch/arm/include/stdarg.h | 7 ++++++-
sys/arch/powerpc/include/stdarg.h | 6 +++++-
2 files changed, 11 insertions(+), 2 deletions(-)
diffs (49 lines):
diff -r ba1bfb90149e -r c03e38dbae44 sys/arch/arm/include/stdarg.h
--- a/sys/arch/arm/include/stdarg.h Fri Jul 01 01:26:15 2011 +0000
+++ b/sys/arch/arm/include/stdarg.h Fri Jul 01 01:26:38 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stdarg.h,v 1.10 2008/06/21 00:56:39 gmcgarry Exp $ */
+/* $NetBSD: stdarg.h,v 1.11 2011/07/01 01:26:38 mrg Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -41,13 +41,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))
diff -r ba1bfb90149e -r c03e38dbae44 sys/arch/powerpc/include/stdarg.h
--- a/sys/arch/powerpc/include/stdarg.h Fri Jul 01 01:26:15 2011 +0000
+++ b/sys/arch/powerpc/include/stdarg.h Fri Jul 01 01:26:38 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stdarg.h,v 1.16 2008/06/21 00:56:39 gmcgarry Exp $ */
+/* $NetBSD: stdarg.h,v 1.17 2011/07/01 01:26:38 mrg Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
@@ -53,7 +53,11 @@
#elif __GNUC_PREREQ__(3, 0)
+#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(ap, type) __builtin_va_arg((ap), type)
#define va_end(ap) __builtin_va_end((ap))
#define __va_copy(dest, src) __builtin_va_copy((dest), (src))
Home |
Main Index |
Thread Index |
Old Index