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