cdefs.h revision 1.3.14.2 1 1.3.14.2 thorpej /* $NetBSD: cdefs.h,v 1.3.14.2 1997/11/04 23:19:23 thorpej Exp $ */
2 1.1 jtc
3 1.1 jtc /*
4 1.1 jtc * Written by J.T. Conklin <jtc (at) wimsey.com> 01/17/95.
5 1.1 jtc * Public domain.
6 1.1 jtc */
7 1.1 jtc
8 1.1 jtc #ifndef _MACHINE_CDEFS_H_
9 1.1 jtc #define _MACHINE_CDEFS_H_
10 1.1 jtc
11 1.3.14.2 thorpej #define _C_LABEL(x) __CONCAT(_,x)
12 1.3.14.1 thorpej
13 1.3.14.1 thorpej #ifdef __GNUC__
14 1.3.14.2 thorpej #define __RENAME(x) __asm__(___STRING(_C_LABEL(x)))
15 1.1 jtc #endif
16 1.1 jtc
17 1.1 jtc #ifdef __GNUC__
18 1.1 jtc #ifdef __STDC__
19 1.2 jtc #define __indr_reference(sym,alias) \
20 1.1 jtc __asm__(".stabs \"_" #alias "\",11,0,0,0"); \
21 1.3.14.2 thorpej __asm__(".stabs \"_" #sym "\",1,0,0,0");
22 1.1 jtc #define __warn_references(sym,msg) \
23 1.1 jtc __asm__(".stabs \"" msg "\",30,0,0,0"); \
24 1.3.14.2 thorpej __asm__(".stabs \"_" #sym "\",1,0,0,0");
25 1.1 jtc #else
26 1.2 jtc #define __indr_reference(sym,alias) \
27 1.1 jtc __asm__(".stabs \"_/**/alias\",11,0,0,0"); \
28 1.3.14.2 thorpej __asm__(".stabs \"_/**/sym\",1,0,0,0");
29 1.1 jtc #define __warn_references(sym,msg) \
30 1.1 jtc __asm__(".stabs msg,30,0,0,0"); \
31 1.3.14.2 thorpej __asm__(".stabs \"_/**/sym\",1,0,0,0");
32 1.1 jtc #endif
33 1.3 pk #else
34 1.3 pk #define __indr_reference(sym,alias)
35 1.3 pk #define __warn_references(sym,msg)
36 1.1 jtc #endif
37 1.1 jtc
38 1.1 jtc #endif /* !_MACHINE_CDEFS_H_ */
39