OSDN Git Service

Seems weak_alias wasn't working as expected...
authorEric Andersen <andersen@codepoet.org>
Wed, 11 Jul 2001 03:47:56 +0000 (03:47 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 11 Jul 2001 03:47:56 +0000 (03:47 -0000)
include/features.h

index af64066..7cb723b 100644 (file)
        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) \
-       extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
+#   define weak_alias(name, aliasname) __asm__(".weak aliasname;aliasname = name");
 #else
 #   define link_warning(symbol, msg) \
        asm (".stabs \"" msg "\",30,0,0,0\n\t" \