Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/7ac8d166e038
branches:  trunk
changeset: 766859:7ac8d166e038
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Jul 03 10:41:37 2011 +0000

description:
add GCC 4.5 support.

diffstat:

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

diffs (21 lines):

diff -r 4c78f662a44a -r 7ac8d166e038 sys/arch/mips/include/stdarg.h
--- a/sys/arch/mips/include/stdarg.h    Sun Jul 03 10:40:16 2011 +0000
+++ b/sys/arch/mips/include/stdarg.h    Sun Jul 03 10:41:37 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.29 2009/12/14 00:46:05 matt Exp $ */
+/*     $NetBSD: stdarg.h,v 1.30 2011/07/03 10:41:37 mrg Exp $  */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -48,7 +48,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