From 635c2432c74546f31e2d00de857c769ff16a0a4e Mon Sep 17 00:00:00 2001 From: David McCullough Date: Wed, 11 Jul 2001 13:30:27 +0000 Subject: The weak_alias macro was not genertaing asm with the correct alias names. Start of the C++ header changes. --- include/features.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/features.h b/include/features.h index 7cb723b00..f86788fa4 100644 --- a/include/features.h +++ b/include/features.h @@ -79,10 +79,6 @@ #endif -/* No C++ */ -#define __BEGIN_DECLS -#define __END_DECLS - /* GNUish things */ #define __CONSTVALUE #define __CONSTVALUE2 @@ -115,7 +111,8 @@ asm (".section " ".gnu.warning." #symbol "\n\t.previous"); \ static const char __evoke_link_warning_##symbol[] \ __attribute__ ((section (".gnu.warning." #symbol "\n\t#"))) = msg; -# define weak_alias(name, aliasname) __asm__(".weak aliasname;aliasname = name"); +# define weak_alias(name, aliasname) \ + asm(".global " #name ";.weak " #aliasname ";" #aliasname "=" #name ";"); #else # define link_warning(symbol, msg) \ asm (".stabs \"" msg "\",30,0,0,0\n\t" \ -- cgit v1.2.3