Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/include More GCC 2.96 changes.



details:   https://anonhg.NetBSD.org/src/rev/508c09dc22d0
branches:  trunk
changeset: 494092:508c09dc22d0
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jul 01 06:38:53 2000 +0000

description:
More GCC 2.96 changes.

diffstat:

 sys/arch/vax/include/ansi.h   |   4 ++--
 sys/arch/vax/include/stdarg.h |  18 +++++++++++++-----
 2 files changed, 15 insertions(+), 7 deletions(-)

diffs (60 lines):

diff -r 7e5fdf5955db -r 508c09dc22d0 sys/arch/vax/include/ansi.h
--- a/sys/arch/vax/include/ansi.h       Sat Jul 01 05:21:12 2000 +0000
+++ b/sys/arch/vax/include/ansi.h       Sat Jul 01 06:38:53 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ansi.h,v 1.10 2000/06/30 03:35:32 matt Exp $   */
+/*     $NetBSD: ansi.h,v 1.11 2000/07/01 06:38:53 matt Exp $   */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -57,7 +57,7 @@
 #define        _BSD_SSIZE_T_           int             /* byte count or error */
 #define        _BSD_TIME_T_            long            /* time() */
 #if __GNUC_PREREQ__(2,96)
-#define        _BSD_VA_LIST_           __builtin_va_list * /* va_list */
+#define        _BSD_VA_LIST_           __builtin_va_list /* va_list */
 #else
 #define        _BSD_VA_LIST_           char *          /* va_list */
 #endif
diff -r 7e5fdf5955db -r 508c09dc22d0 sys/arch/vax/include/stdarg.h
--- a/sys/arch/vax/include/stdarg.h     Sat Jul 01 05:21:12 2000 +0000
+++ b/sys/arch/vax/include/stdarg.h     Sat Jul 01 06:38:53 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.12 2000/02/03 16:16:11 kleink Exp $       */
+/*     $NetBSD: stdarg.h,v 1.13 2000/07/01 06:38:53 matt Exp $ */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -47,6 +47,12 @@
 #define __builtin_next_arg(t)          ((t) ? 0 : 0)
 #endif
 
+#if __GNUC_PREREQ__(2, 96)
+#define        va_start(ap, last)      __builtin_stdarg_start((ap), (last))
+#define        va_arg                  __builtin_va_arg
+#define        va_end                  __builtin_va_end
+#define        __va_copy(dest, src)    __builtin_va_copy((dest), (src))
+#else
 #define        __va_size(type) \
        (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
 
@@ -56,13 +62,15 @@
 #define        va_arg(ap, type) \
        (*(type *)(void *)((ap) += __va_size(type), (ap) - __va_size(type)))
 
+#define va_end(ap)     
+
+#define __va_copy(dest, src)   ((dest) == (src))
+#endif
+
 #if !defined(_ANSI_SOURCE) && \
     (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
      defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L)
-#define        va_copy(dest, src) \
-       ((dest) = (src))
+#define        va_copy(dest, src)      __va_copy(dest, src)
 #endif
 
-#define va_end(ap)     
-
 #endif /* !_VAX_STDARG_H_ */



Home | Main Index | Thread Index | Old Index