diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-09-25 22:51:55 +0000 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2019-09-25 15:51:55 -0700 |
commit | 58d169ba9ffca04d77314f525af9efd93881a86b (patch) | |
tree | a51ee36283d23805d1a340046084adf6eb3d918b /libgcc/config/aarch64 | |
parent | 88a51d68c4aaa61adb36a9cad6f25ef214bde853 (diff) | |
download | gcc-58d169ba9ffca04d77314f525af9efd93881a86b.tar.gz |
aarch64: Configure for sys/auxv.h in libgcc for lse-init.c
PR target/91833
* config/aarch64/lse-init.c: Include auto-target.h. Disable
initialization if !HAVE_SYS_AUXV_H.
* configure.ac (AC_CHECK_HEADERS): Add sys/auxv.h.
* config.in, configure: Rebuild.
From-SVN: r276134
Diffstat (limited to 'libgcc/config/aarch64')
-rw-r--r-- | libgcc/config/aarch64/lse-init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libgcc/config/aarch64/lse-init.c b/libgcc/config/aarch64/lse-init.c index 33d29147479..1a8f4c55213 100644 --- a/libgcc/config/aarch64/lse-init.c +++ b/libgcc/config/aarch64/lse-init.c @@ -23,12 +23,14 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see <http://www.gnu.org/licenses/>. */ +#include "auto-target.h" + /* Define the symbol gating the LSE implementations. */ _Bool __aarch64_have_lse_atomics __attribute__((visibility("hidden"), nocommon)); /* Disable initialization of __aarch64_have_lse_atomics during bootstrap. */ -#ifndef inhibit_libc +#if !defined(inhibit_libc) && defined(HAVE_SYS_AUXV_H) # include <sys/auxv.h> /* Disable initialization if the system headers are too old. */ |