Message ID | 20220206002912.2882194-1-hjl.tools@gmail.com |
---|---|
State | New |
Headers | show |
Series | x86: Improve L to support L(XXX_SYMBOL (YYY, ZZZ)) | expand |
On Sat, Feb 5, 2022 at 4:29 PM H.J. Lu <hjl.tools@gmail.com> wrote: > > --- > sysdeps/x86/sysdep.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/sysdeps/x86/sysdep.h b/sysdeps/x86/sysdep.h > index b92a0db5dd..60b366258f 100644 > --- a/sysdeps/x86/sysdep.h > +++ b/sysdeps/x86/sysdep.h > @@ -114,7 +114,8 @@ enum cf_protection_level > /* Local label name for asm code. */ > #ifndef L > /* ELF-like local names start with `.L'. */ > -# define L(name) .L##name > +# define LOCAL_LABEL(name) .L##name > +# define L(name) LOCAL_LABEL(name) > #endif > > #define atom_text_section .section ".text.atom", "ax" > -- > 2.34.1 > I am checking this in.
On Sun, Feb 6, 2022 at 6:50 AM H.J. Lu via Libc-alpha <libc-alpha@sourceware.org> wrote: > > On Sat, Feb 5, 2022 at 4:29 PM H.J. Lu <hjl.tools@gmail.com> wrote: > > > > --- > > sysdeps/x86/sysdep.h | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/sysdeps/x86/sysdep.h b/sysdeps/x86/sysdep.h > > index b92a0db5dd..60b366258f 100644 > > --- a/sysdeps/x86/sysdep.h > > +++ b/sysdeps/x86/sysdep.h > > @@ -114,7 +114,8 @@ enum cf_protection_level > > /* Local label name for asm code. */ > > #ifndef L > > /* ELF-like local names start with `.L'. */ > > -# define L(name) .L##name > > +# define LOCAL_LABEL(name) .L##name > > +# define L(name) LOCAL_LABEL(name) > > #endif > > > > #define atom_text_section .section ".text.atom", "ax" > > -- > > 2.34.1 > > > > I am checking this in. > > -- > H.J. I would like to backport this patch to release branches. Any comments or objections? --Sunil
diff --git a/sysdeps/x86/sysdep.h b/sysdeps/x86/sysdep.h index b92a0db5dd..60b366258f 100644 --- a/sysdeps/x86/sysdep.h +++ b/sysdeps/x86/sysdep.h @@ -114,7 +114,8 @@ enum cf_protection_level /* Local label name for asm code. */ #ifndef L /* ELF-like local names start with `.L'. */ -# define L(name) .L##name +# define LOCAL_LABEL(name) .L##name +# define L(name) LOCAL_LABEL(name) #endif #define atom_text_section .section ".text.atom", "ax"