diff options
author | Roland McGrath <roland@gnu.org> | 1994-07-09 07:22:29 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-07-09 07:22:29 +0000 |
commit | 9e367238c93bdbc1424ec907c92e52e30bdda8ad (patch) | |
tree | bc20695662485d73862d0c3c6cead49142791b75 | |
parent | 797a28de823dc4c273a22bfdfe575dcd56edb1a7 (diff) | |
download | glibc-9e367238c93bdbc1424ec907c92e52e30bdda8ad.tar.gz glibc-9e367238c93bdbc1424ec907c92e52e30bdda8ad.tar.xz glibc-9e367238c93bdbc1424ec907c92e52e30bdda8ad.zip |
Formerly ../gnu-stabs.h.~7~
-rw-r--r-- | gnu-stabs.h | 44 |
1 files changed, 12 insertions, 32 deletions
diff --git a/gnu-stabs.h b/gnu-stabs.h index fe8c60d0d1..7c5a789c7f 100644 --- a/gnu-stabs.h +++ b/gnu-stabs.h @@ -33,52 +33,32 @@ Cambridge, MA 02139, USA. */ #define function_alias_void(name, _name, args, defun) \ symbol_alias (_name, name); -/* Make references to ALIAS refer to SYMBOL. */ -#ifdef __STDC__ -#define symbol_alias(symbol, alias) \ - asm(".stabs \"" "_" #alias "\",11,0,0,0\n"\ - ".stabs \"" "_" #symbol "\",1,0,0,0") +#ifdef NO_UNDERSCORES +#define __SYMBOL_PREFIX "_" #else -/* Your assembler better grok this right! */ -#define symbol_alias(symbol, alias) \ - asm(".stabs \"_/**/alias\",11,0,0,0\n.stabs \"_/**/symbol\",1,0,0,0") +#define __SYMBOL_PREFIX #endif +/* Make references to ALIAS refer to SYMBOL. */ +#define symbol_alias(symbol, alias) \ + asm(".stabs \"" __SYMBOL_PREFIX #alias "\",11,0,0,0\n"\ + ".stabs \"" __SYMBOL_PREFIX #symbol "\",1,0,0,0") + /* Issue a warning message from the linker whenever SYMBOL is referenced. */ -#ifdef __STDC__ #define warn_references(symbol, msg) \ asm(".stabs \"" msg "\",30,0,0,0\n" \ - ".stabs \"_" #symbol "\",1,0,0,0") -#else -#define warn_references(symbol, msg) \ - asm(".stabs msg,30,0,0,0\n.stabs \"_/**/symbol\",1,0,0,0") -#endif + ".stabs \"" __SYMBOL_PREFIX #symbol "\",1,0,0,0") -#ifdef __STDC__ #define stub_warning(name) \ warn_references(name, \ "warning: " #name " is not implemented and will always fail") -#else -#define stub_warning(name) \ - warn_references(name, \ - "warning: name is not implemented and will always fail") -#endif -#ifdef __STDC__ #define text_set_element(set, symbol) \ - asm(".stabs \"_" #set "\",23,0,0,_" #symbol) + asm(".stabs \"" __SYMBOL_PREFIX #set "\",23,0,0," __SYMBOL_PREFIX #symbol) #define data_set_element(set, symbol) \ - asm(".stabs \"_" #set "\",25,0,0,_" #symbol) + asm(".stabs \"" __SYMBOL_PREFIX #set "\",25,0,0," __SYMBOL_PREFIX #symbol) #define bss_set_element(set, symbol) \ - asm(".stabs \"_" #set "\",27,0,0,_" #symbol) -#else -#define text_set_element(set, symbol) \ - asm(".stabs \"_/**/set\",23,0,0,_/**/symbol") -#define data_set_element(set, symbol) \ - asm(".stabs \"_/**/set\",25,0,0,_/**/symbol") -#define bss_set_element(set, symbol) \ - asm(".stabs \"_/**/set\",27,0,0,_/**/symbol") -#endif + asm(".stabs \"" __SYMBOL_PREFIX #set "\",27,0,0," __SYMBOL_PREFIX #symbol) #else /* No GNU stabs. */ |