Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/include add GCC 4.5 support.



details:   https://anonhg.NetBSD.org/src/rev/355fe3a7d0df
branches:  trunk
changeset: 766836:355fe3a7d0df
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Jul 03 06:45:50 2011 +0000

description:
add GCC 4.5 support.

diffstat:

 sys/arch/sh3/include/stdarg.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 3b54c30c7ad9 -r 355fe3a7d0df sys/arch/sh3/include/stdarg.h
--- a/sys/arch/sh3/include/stdarg.h     Sun Jul 03 06:45:24 2011 +0000
+++ b/sys/arch/sh3/include/stdarg.h     Sun Jul 03 06:45:50 2011 +0000
@@ -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))



Home | Main Index | Thread Index | Old Index