Source-Changes-HG archive

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

[src/trunk]: src/sys/sys Use __builtin_va_start for clang as well. This avoid...



details:   https://anonhg.NetBSD.org/src/rev/eca266e182f6
branches:  trunk
changeset: 746018:eca266e182f6
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Mar 20 01:06:11 2020 +0000

description:
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 19ff039b4f92 -r eca266e182f6 sys/sys/stdarg.h
--- a/sys/sys/stdarg.h  Fri Mar 20 00:27:58 2020 +0000
+++ b/sys/sys/stdarg.h  Fri Mar 20 01:06:11 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.5 2020/03/20 01:06:11 joerg 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