Fix tst-audit10 build when -mavx512f is not supported.
authorRoland McGrath <roland@hack.frob.com>
Tue, 8 Mar 2016 20:31:13 +0000 (12:31 -0800)
committerRoland McGrath <roland@hack.frob.com>
Tue, 8 Mar 2016 20:32:59 +0000 (12:32 -0800)
ChangeLog
sysdeps/x86_64/tst-audit10-aux.c
sysdeps/x86_64/tst-audit10.c

index 560b4dc..73a49a0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-03-08  Roland McGrath  <roland@hack.frob.com>
+
+       * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
+       * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
+       (tst_audit10_aux) [__AVX512F__]: ... here.
+
 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
 
        * include/sys/auxv.h: New file.
index 4398b8f..992a16c 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 
-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);
 
index 92e0cb4..a487b40 100644 (file)
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <cpuid.h>
+#include <cpu-features.h>
 
 int tst_audit10_aux (void);