about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2016-03-08 12:31:13 -0800
committerFlorian Weimer <fweimer@redhat.com>2016-05-09 11:56:05 +0200
commitd603d94994a1d326ebc9e93c8be892acc834a114 (patch)
treefc8712e7ba122ae0ab30e91fa1669c154e1d0c5d
parent7fa9775594b1592dfcdad5bc32ea449882ca9d9a (diff)
downloadglibc-d603d94994a1d326ebc9e93c8be892acc834a114.tar.gz
glibc-d603d94994a1d326ebc9e93c8be892acc834a114.tar.xz
glibc-d603d94994a1d326ebc9e93c8be892acc834a114.zip
Fix tst-audit10 build when -mavx512f is not supported.
(cherry picked from commit 3bd80c0de2f8e7ca8020d37739339636d169957e)
-rw-r--r--ChangeLog6
-rw-r--r--sysdeps/x86_64/tst-audit10-aux.c6
-rw-r--r--sysdeps/x86_64/tst-audit10.c1
3 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index dc7dc65f6b..fdbb92e973 100644
--- 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-07  Florian Weimer  <fweimer@redhat.com>
 
 	[BZ #19269]
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 <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);
 
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 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <cpuid.h>
+#include <cpu-features.h>
 
 int tst_audit10_aux (void);