This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Get rid of ASM_GLOBAL_DIRECTIVE
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sun, 03 Jun 2012 09:38:41 +0200
- Subject: Re: [PATCH] Get rid of ASM_GLOBAL_DIRECTIVE
- References: <20120602204633.GD31043@redhat.com>
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."