summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/include/va-m88k.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-08-26 14:31:13 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-08-26 14:31:13 +0000
commitc2d2d5bd3e59967a2c443396cce4814b5301337c (patch)
tree47187a3178cfddaa9818fb79727dceaecb32d430 /sys/arch/mvme88k/include/va-m88k.h
parentbbaac1ee40707801b8eb4b6ab4844a3da1295515 (diff)
Add prototypes, fix compilation warnings, random style fixes.
Diffstat (limited to 'sys/arch/mvme88k/include/va-m88k.h')
-rw-r--r--sys/arch/mvme88k/include/va-m88k.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/arch/mvme88k/include/va-m88k.h b/sys/arch/mvme88k/include/va-m88k.h
index af08e572cfc..8033d9ebcf8 100644
--- a/sys/arch/mvme88k/include/va-m88k.h
+++ b/sys/arch/mvme88k/include/va-m88k.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: va-m88k.h,v 1.4 2001/07/04 08:09:23 niklas Exp $ */
+/* $OpenBSD: va-m88k.h,v 1.5 2001/08/26 14:31:07 miod Exp $ */
/* This file has local changes by MOTOROLA
Thu Sep 9 09:06:29 CDT 1993 Dale Rahn (drahn@pacific)
@@ -27,25 +27,11 @@ typedef struct
#ifdef _STDARG_H /* stdarg.h support */
-#if __GNUC__ > 1 /* GCC 2.0 and beyond */
#define va_start(AP,LASTARG) ((AP) = *(__gnuc_va_list *)__builtin_saveregs())
-#else
-#define va_start(AP,LASTARG) \
- ( (AP).__va_reg = (int *) __builtin_saveregs2(0), \
- (AP).__va_stk = (int *) __builtin_argptr(), \
- (AP).__va_arg = (int) (__builtin_argsize() + 3) / 4 )
-#endif
#else /* varargs.h support */
-#if __GNUC__ > 1 /* GCC 2.0 and beyond */
#define va_start(AP) ((AP) = *(__gnuc_va_list *)__builtin_saveregs())
-#else
-#define va_start(AP) \
- ( (AP).__va_reg = (int *) __builtin_saveregs2(1), \
- (AP).__va_stk = (int *) __builtin_argptr(), \
- (AP).__va_arg = (int) (__builtin_argsize() - 4 + 3) / 4 )
-#endif
#define va_alist __va_1st_arg
#define va_dcl register int va_alist;