NetBSD/sys/arch/bebox/include/cdefs.h

41 lines
925 B
C
Raw Normal View History

/* $NetBSD: cdefs.h,v 1.3 1997/11/04 23:09:37 thorpej Exp $ */
1997-10-14 10:47:17 +04:00
#ifndef _MACHINE_CDEFS_H_
#define _MACHINE_CDEFS_H_
#define _C_LABEL(x) x
1997-10-14 10:47:17 +04:00
#ifdef __GNUC__
#define __RENAME(x) __asm__(___STRING(_C_LABEL(x)))
#endif
1997-10-14 10:47:17 +04:00
#define __DO_NOT_DO_WEAK__ /* NO WEAK SYMS IN LIBC YET */
#ifndef __DO_NOT_DO_WEAK__
#define __indr_reference(sym, alias) /* use weak symbols instead */
#endif
#ifdef __STDC__
#ifndef __DO_NOT_DO_WEAK__
#define __weak_alias(alias, sym) \
__asm__(".weak " #alias " ; " #alias " = " #sym);
1997-10-14 10:47:17 +04:00
#endif
#define __warn_references(sym, msg) \
__asm__(".section .gnu.warning." #sym " ; .ascii \"" msg "\" ; .text");
1997-10-14 10:47:17 +04:00
#else /* ! __STDC__ */
#ifndef __DO_NOT_DO_WEAK__
#define __weak_alias(alias, sym) \
__asm__(".weak alias ; alias = sym");
1997-10-14 10:47:17 +04:00
#endif
#define __warn_references(sym, msg) \
__asm__(".section .gnu.warning.sym ; .ascii msg ; .text");
1997-10-14 10:47:17 +04:00
#endif /* __STDC__ */
#endif /* !_MACHINE_CDEFS_H_ */