]> gcc.gnu.org Git - gcc.git/commit
[AArch64] Use __getauxval instead of getauxval in LSE detection code in libgcc
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 6 May 2020 15:20:38 +0000 (16:20 +0100)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Fri, 29 May 2020 13:01:34 +0000 (14:01 +0100)
commitb6dc99434abb6f5fa70ced8790bcae29d4b6a4b1
tree6bc0234d399f8d86b0161a78aedd3cc844b5b6be
parenta243b6316937e4d4149e7ff5ad616f7baf4d4d34
[AArch64] Use __getauxval instead of getauxval in LSE detection code in libgcc

This version of the fix uses __getauxval instead of getauxval.
The whole thing is guarded simply on __gnu_linux__.
__getauxval was introduced in 2.16 but the aarch64 port was added in 2.17 so in practice I expect all aarch64 glibcs to support __getauxval.

Bootstrapped and tested on aarch64-none-linux-gnu.
Also tested on aarch64-none-elf.

2020-05-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* 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__.

(cherry picked from commit 1266778548e20de82983b6446f3cb685068cfb1e)
libgcc/config/aarch64/lse-init.c
This page took 0.061384 seconds and 5 git commands to generate.