Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/include clean up old GCC.1 stuff.



details:   https://anonhg.NetBSD.org/src/rev/bf5418a24f3d
branches:  trunk
changeset: 472660:bf5418a24f3d
user:      christos <christos%NetBSD.org@localhost>
date:      Tue May 04 13:36:10 1999 +0000

description:
clean up old GCC.1 stuff.

diffstat:

 sys/arch/sparc/include/stdarg.h |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (33 lines):

diff -r a8dc160b2614 -r bf5418a24f3d sys/arch/sparc/include/stdarg.h
--- a/sys/arch/sparc/include/stdarg.h   Tue May 04 11:55:22 1999 +0000
+++ b/sys/arch/sparc/include/stdarg.h   Tue May 04 13:36:10 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.14 1999/05/03 16:20:28 christos Exp $ */
+/*     $NetBSD: stdarg.h,v 1.15 1999/05/04 13:36:10 christos Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -52,21 +52,16 @@
 typedef _BSD_VA_LIST_  va_list;
 
 #ifdef __lint__
-#define __builtin_saveregs()           0
-#define __builtin_classify_type(t)     0
+#define __builtin_saveregs()           (0)
+#define __builtin_classify_type(t)     (0)
 #define __builtin_next_arg(t)          ((t) ? 0 : 0)
 #endif
 
 #define        __va_size(type) \
        (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
 
-#if __GNUC__ > 2 || __GNUC_MINOR__ >= 6
 #define        va_start(ap, last) \
        (__builtin_next_arg(last), (ap) = (va_list)__builtin_saveregs())
-#else
-#define        va_start(ap, last) \
-       (__builtin_next_arg(), (ap) = (va_list)__builtin_saveregs())
-#endif
 
 /*
  * va_arg picks up the next argument of type `type'.  Appending an



Home | Main Index | Thread Index | Old Index