diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2012-12-04 21:06:52 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2012-12-04 21:06:52 +0000 |
commit | a3685c5a2705d2d4b5490b02433fdc2d3a03b1fc (patch) | |
tree | baad8b16df4078936e28bb274aecacccf53ecc6f /sys/arch | |
parent | 873f72feac0b65839474d3e5c90245e74d031888 (diff) |
Remove the gcc 2 m88k varargs logic. You gave me a lot of trouble and no pony,
therefore I don't mind you rotting in the Attic for eternity (scheduled
to start on the 21st anyway, according to MayaBSD developers).
reminded by deraadt@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/aviion/include/va-m88k.h | 3 | ||||
-rw-r--r-- | sys/arch/luna88k/include/va-m88k.h | 3 | ||||
-rw-r--r-- | sys/arch/m88k/include/va-m88k.h | 102 | ||||
-rw-r--r-- | sys/arch/mvme88k/include/va-m88k.h | 3 |
4 files changed, 0 insertions, 111 deletions
diff --git a/sys/arch/aviion/include/va-m88k.h b/sys/arch/aviion/include/va-m88k.h deleted file mode 100644 index 285f85179f1..00000000000 --- a/sys/arch/aviion/include/va-m88k.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: va-m88k.h,v 1.1 2006/04/18 10:56:57 miod Exp $ */ -/* public domain */ -#include <m88k/va-m88k.h> diff --git a/sys/arch/luna88k/include/va-m88k.h b/sys/arch/luna88k/include/va-m88k.h deleted file mode 100644 index 44101abbdda..00000000000 --- a/sys/arch/luna88k/include/va-m88k.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: va-m88k.h,v 1.3 2004/04/26 14:31:08 miod Exp $ */ -/* public domain */ -#include <m88k/va-m88k.h> diff --git a/sys/arch/m88k/include/va-m88k.h b/sys/arch/m88k/include/va-m88k.h deleted file mode 100644 index 2ccd2cfd84e..00000000000 --- a/sys/arch/m88k/include/va-m88k.h +++ /dev/null @@ -1,102 +0,0 @@ -/* $OpenBSD: va-m88k.h,v 1.11 2010/12/31 20:37:36 miod Exp $ */ - -/* Define __gnuc_va_list. */ - -#ifndef __GNUC_VA_LIST -#define __GNUC_VA_LIST - -#include <sys/cdefs.h> - -typedef struct __va_list_tag { - unsigned int __va_arg; /* argument number */ - unsigned int *__va_stk; /* start of args passed on stack */ - unsigned int *__va_reg; /* start of args passed in regs */ -} __gnuc_va_list[1]; - -#endif /* not __GNUC_VA_LIST */ - -/* If this is for internal libc use, don't define anything but - __gnuc_va_list. */ -#if defined (_STDARG_H) || defined (_VARARGS_H) - -#define __va_start_common(AP,FAKE) \ -__extension__ ({ \ - (AP) = (struct __va_list_tag *)__builtin_alloca(sizeof(__gnuc_va_list)); \ - __builtin_memcpy ((AP), __builtin_saveregs (), sizeof(__gnuc_va_list)); \ - }) - -#ifdef _STDARG_H /* stdarg.h support */ - -/* Calling __builtin_next_arg gives the proper error message if LASTARG is - not indeed the last argument. */ -#ifdef lint -#define va_start(AP,LASGARG) ((AP) = (AP)) -#else -#define va_start(AP,LASTARG) \ - (__builtin_next_arg (LASTARG), __va_start_common (AP, 0)) -#endif /* lint */ - -#else /* varargs.h support */ - -#ifdef lint -#define va_start(AP) ((AP) = (AP)) -#else -#define va_start(AP) __va_start_common (AP, 1) -#endif /* lint */ - -#define va_alist __va_1st_arg -#define va_dcl register int va_alist; ... - -#endif /* _STDARG_H */ - -#define __va_reg_p(TYPE) \ -__extension__({ \ - __builtin_classify_type(*(TYPE *)0) < 12 ? /* record, union */ \ - sizeof(TYPE) <= 8 : \ - sizeof(TYPE) == 4 && __alignof__(*(TYPE *)0) == 4; \ -}) - -#define __va_size(TYPE) ((sizeof(TYPE) + 3) >> 2) - -/* We cast to void * and then to TYPE * because this avoids - a warning about increasing the alignment requirement. */ -#define va_arg(AP,TYPE) \ -__extension__(*({ \ - register TYPE *__ptr; \ - \ - if ((AP)->__va_arg <= 8 && __va_reg_p(TYPE)) { \ - /* might be in registers */ \ - if (((AP)->__va_arg & 1) != 0 && __alignof__(*(TYPE *)0) > 4) \ - (AP)->__va_arg++; \ - (AP)->__va_arg += __va_size(TYPE); \ - } \ - \ - if ((AP)->__va_arg <= 8 && __va_reg_p(TYPE)) { \ - __ptr = (TYPE *) (void *) ((AP)->__va_reg + \ - (AP)->__va_arg - __va_size(TYPE)); \ - } else { \ - if (((unsigned int)((AP)->__va_stk) & 4) != 0 && \ - __alignof__(*(TYPE *)0) > 4) { \ - (AP)->__va_stk++; \ - } \ - __ptr = (TYPE *) (AP)->__va_stk; \ - (AP)->__va_stk += __va_size(TYPE); \ - } \ - __ptr; \ -})) - -#define va_end(AP) ((void)0) - -#ifdef lint -#define __va_copy(dest, src) ((dest) = (src)) -#else -/* Copy __gnuc_va_list into another variable of this type. */ -#define __va_copy(dest, src) \ -__extension__ ({ \ - (dest) = \ - (struct __va_list_tag *)__builtin_alloca(sizeof(__gnuc_va_list)); \ - *(dest) = *(src);\ - }) -#endif /* lint */ - -#endif /* defined (_STDARG_H) || defined (_VARARGS_H) */ diff --git a/sys/arch/mvme88k/include/va-m88k.h b/sys/arch/mvme88k/include/va-m88k.h deleted file mode 100644 index 5a2edb60bed..00000000000 --- a/sys/arch/mvme88k/include/va-m88k.h +++ /dev/null @@ -1,3 +0,0 @@ -/* $OpenBSD: va-m88k.h,v 1.13 2004/04/26 14:31:11 miod Exp $ */ -/* public domain */ -#include <m88k/va-m88k.h> |