[PATCH] Get rid of ASM_GLOBAL_DIRECTIVE
Andreas Schwab
schwab@linux-m68k.org
Sun Jun 3 07:39:00 GMT 2012
Marek Polacek <polacek@redhat.com> writes:
> # define declare_symbol_alias_1(symbol, original, type, size) \
> - asm (declare_symbol_alias_1_stringify (ASM_GLOBAL_DIRECTIVE) \
> + asm (declare_symbol_alias_1_stringify (.globl) \
Stringify is useless now.
> --- libc/elf/tst-unique2mod2.c.mp 2012-06-02 21:21:58.150865042 +0200
> +++ libc/elf/tst-unique2mod2.c 2012-06-02 22:34:58.562881961 +0200
> @@ -5,7 +5,7 @@
> # define _S(s) #s
>
> asm (".data;"
> - S (ASM_GLOBAL_DIRECTIVE) " var\n"
> + S (.globl) " var\n"
Likewise.
> --- libc/locale/localeinfo.h.mp 2012-06-02 21:19:22.114402629 +0200
> +++ libc/locale/localeinfo.h 2012-06-02 22:34:58.565881970 +0200
> @@ -255,7 +255,7 @@ extern __thread struct __locale_data *co
> #define _NL_CURRENT_DEFINE(category) \
> __thread struct __locale_data *const *_nl_current_##category \
> attribute_hidden = &_nl_global_locale.__locales[category]; \
> - asm (_NL_CURRENT_DEFINE_STRINGIFY (ASM_GLOBAL_DIRECTIVE) \
> + asm (_NL_CURRENT_DEFINE_STRINGIFY (.globl) \
Likewise.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list