RE: [AArch64][GCC-8][GCC-9] Use __getauxval instead of getauxval in LSE detection code in libgcc

2020-05-28 Thread Kyrylo Tkachov
Hi Andre,

> -Original Message-
> From: Andre Vieira (lists) 
> Sent: 28 May 2020 15:42
> To: gcc-patches@gcc.gnu.org
> Cc: Kyrylo Tkachov 
> Subject: [AArch64][GCC-8][GCC-9] Use __getauxval instead of getauxval in
> LSE detection code in libgcc
> 
> The patch applies cleanly on gcc-9 and gcc-8.
> I bootstrapped this on aarch64-none-linux-gnu and tested
> aarch64-none-elf for both.
> 
> Is this OK for those backports?

Yes, thanks for testing this.
Kyrill

> 
> libgcc/ChangeLog:
> 2020-05-28  Andre Vieira  
> 
>      Backport from mainline.
>      2020-05-06  Kyrylo Tkachov  
> 
>      * config/aarch64/lse-init.c (init_have_lse_atomics): Use __getauxval
>      instead of getauxval.
>      (AT_HWCAP): Define.
>      (HWCAP_ATOMICS): Define.
>      Guard detection on __gnu_linux__.
> 
> On 06/05/2020 16:24, Kyrylo Tkachov wrote:
> >
> >> -Original Message-
> >> From: Joseph Myers 
> >> Sent: 06 May 2020 15:46
> >> To: Richard Biener 
> >> Cc: Kyrylo Tkachov ; Florian Weimer
> >> ; Szabolcs Nagy ; gcc-
> >> patc...@gcc.gnu.org; Jakub Jelinek 
> >> Subject: Re: [PATCH][AArch64] Use __getauxval instead of getauxval in LSE
> >> detection code in libgcc
> >>
> >> On Wed, 6 May 2020, Richard Biener wrote:
> >>
>  Here is the updated patch for the record.
>  Jakub, richi, is this ok for the GCC 10 branch?
> >>> I'll defer to Joseph who is release manager as well.
> >> This version is OK with me.
> > Thank you Joseph,
> > I've committed this version to trunk and the gcc-10 branch.
> > Kyrill
> >
> >> --
> >> Joseph S. Myers
> >> jos...@codesourcery.com


[AArch64][GCC-8][GCC-9] Use __getauxval instead of getauxval in LSE detection code in libgcc

2020-05-28 Thread Andre Vieira (lists)

The patch applies cleanly on gcc-9 and gcc-8.
I bootstrapped this on aarch64-none-linux-gnu and tested 
aarch64-none-elf for both.


Is this OK for those backports?

libgcc/ChangeLog:
2020-05-28  Andre Vieira  

    Backport from mainline.
    2020-05-06  Kyrylo Tkachov  

    * config/aarch64/lse-init.c (init_have_lse_atomics): Use __getauxval
    instead of getauxval.
    (AT_HWCAP): Define.
    (HWCAP_ATOMICS): Define.
    Guard detection on __gnu_linux__.

On 06/05/2020 16:24, Kyrylo Tkachov wrote:



-Original Message-
From: Joseph Myers 
Sent: 06 May 2020 15:46
To: Richard Biener 
Cc: Kyrylo Tkachov ; Florian Weimer
; Szabolcs Nagy ; gcc-
patc...@gcc.gnu.org; Jakub Jelinek 
Subject: Re: [PATCH][AArch64] Use __getauxval instead of getauxval in LSE
detection code in libgcc

On Wed, 6 May 2020, Richard Biener wrote:


Here is the updated patch for the record.
Jakub, richi, is this ok for the GCC 10 branch?

I'll defer to Joseph who is release manager as well.

This version is OK with me.

Thank you Joseph,
I've committed this version to trunk and the gcc-10 branch.
Kyrill


--
Joseph S. Myers
jos...@codesourcery.com