diff options
-rw-r--r-- | sys/arch/hppa/include/cdefs.h | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/sys/arch/hppa/include/cdefs.h b/sys/arch/hppa/include/cdefs.h index 474378816a8..4b6012bbf2b 100644 --- a/sys/arch/hppa/include/cdefs.h +++ b/sys/arch/hppa/include/cdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdefs.h,v 1.3 2001/03/29 01:44:53 mickey Exp $ */ +/* $OpenBSD: cdefs.h,v 1.4 2002/08/03 03:05:11 fgsch Exp $ */ /* $NetBSD: cdefs.h,v 1.5 1996/10/12 18:08:12 cgd Exp $ */ /* @@ -33,37 +33,9 @@ #define _C_LABEL(x) _STRING(x) -#ifdef __ELF__ - -#ifdef __STDC__ - #define __weak_alias(alias,sym) \ __asm__(".weak " __STRING(alias) " ; " __STRING(alias) " = " __STRING(sym)) #define __warn_references(sym,msg) \ __asm__(".section .gnu.warning." __STRING(sym) " ; .ascii \"" msg "\" ; .text") -#else /* !__STDC__ */ - -#define __weak_alias(alias,sym) \ - __asm__(".weak alias ; alias = sym") -#define __warn_references(sym,msg) \ - __asm__(".section .gnu.warning.sym ; .ascii msg ; .text") - -#endif /* !__STDC__ */ - -#else /* !__ELF__ */ - -/* - * We don't support indirect references and don't do anything with warnings. - */ - -#ifdef __STDC__ -#define __weak_alias(alias,sym) __asm__(".weakext " __STRING(alias) ", " __STRING(sym)) -#else /* !__STDC__ */ -#define __weak_alias(alias,sym) __asm__(".weakext alias, sym") -#endif /* !__STDC__ */ -#define __warn_references(sym,msg) /* nothing */ - -#endif /* !__ELF__ */ - #endif /* !_MACHINE_CDEFS_H_ */ |