Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/sys Pull up following revision(s) (requested by joerg...



details:   https://anonhg.NetBSD.org/src/rev/87ee683b5594
branches:  netbsd-9
changeset: 963758:87ee683b5594
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Apr 02 19:17:04 2020 +0000

description:
Pull up following revision(s) (requested by joerg in ticket #816):

        sys/sys/stdarg.h: revision 1.5

Use __builtin_va_start for clang as well. This avoids a bug in the
warning engine for the compatibility alias.

diffstat:

 sys/sys/stdarg.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f2375af28be3 -r 87ee683b5594 sys/sys/stdarg.h
--- a/sys/sys/stdarg.h  Thu Apr 02 19:15:35 2020 +0000
+++ b/sys/sys/stdarg.h  Thu Apr 02 19:17:04 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.4 2014/08/15 11:58:13 matt Exp $  */
+/*     $NetBSD: stdarg.h,v 1.4.24.1 2020/04/02 19:17:04 martin Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -45,7 +45,7 @@
 #define        __builtin_va_end(a)             /* nothing */
 #define        __builtin_va_copy(d, s)         ((d) = (s))
 #elif !(__GNUC_PREREQ__(4, 5) || \
-    (__GNUC_PREREQ__(4, 4) && __GNUC_PATCHLEVEL__ > 2))
+    (__GNUC_PREREQ__(4, 4) && __GNUC_PATCHLEVEL__ > 2) || defined(__clang__))
 #define __builtin_va_start(ap, last)    __builtin_stdarg_start((ap), (last))
 #endif
 



Home | Main Index | Thread Index | Old Index