From 3bd80c0de2f8e7ca8020d37739339636d169957e Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 8 Mar 2016 12:31:13 -0800 Subject: Fix tst-audit10 build when -mavx512f is not supported. --- ChangeLog | 6 ++++++ sysdeps/x86_64/tst-audit10-aux.c | 6 +++--- sysdeps/x86_64/tst-audit10.c | 1 + 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 560b4dcd56..73a49a06e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-03-08 Roland McGrath + + * sysdeps/x86_64/tst-audit10.c: #include . + * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ... + (tst_audit10_aux) [__AVX512F__]: ... here. + 2016-03-08 Aurelien Jarno * include/sys/auxv.h: New file. diff --git a/sysdeps/x86_64/tst-audit10-aux.c b/sysdeps/x86_64/tst-audit10-aux.c index 4398b8fd6f..992a16c8ad 100644 --- a/sysdeps/x86_64/tst-audit10-aux.c +++ b/sysdeps/x86_64/tst-audit10-aux.c @@ -20,13 +20,13 @@ #include #include -extern __m512i audit_test (__m512i, __m512i, __m512i, __m512i, - __m512i, __m512i, __m512i, __m512i); - int tst_audit10_aux (void) { #ifdef __AVX512F__ + extern __m512i audit_test (__m512i, __m512i, __m512i, __m512i, + __m512i, __m512i, __m512i, __m512i); + __m512i zmm = _mm512_setzero_si512 (); __m512i ret = audit_test (zmm, zmm, zmm, zmm, zmm, zmm, zmm, zmm); diff --git a/sysdeps/x86_64/tst-audit10.c b/sysdeps/x86_64/tst-audit10.c index 92e0cb4b52..a487b408bb 100644 --- a/sysdeps/x86_64/tst-audit10.c +++ b/sysdeps/x86_64/tst-audit10.c @@ -17,6 +17,7 @@ . */ #include +#include int tst_audit10_aux (void); -- cgit 1.4.1