x86: Improve L to support L(XXX_SYMBOL (YYY, ZZZ))
Checks
Context |
Check |
Description |
dj/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
dj/TryBot-32bit |
success
|
Build for i686
|
Commit Message
---
sysdeps/x86/sysdep.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
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
@@ -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"