Blame SOURCES/valgrind-3.13.0-ppc64-check-no-vsx.patch

1af9e5
commit 326d53c8378984c50f29bd124d3f2b4a1242306c
1af9e5
Author: mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9>
1af9e5
Date:   Fri Jun 16 09:33:35 2017 +0000
1af9e5
1af9e5
    ppc64 doesn't compile test_isa_2_06_partx.c without VSX support
1af9e5
    
1af9e5
    The #ifdef HAS_VSX guard is wrongly placed. It makes the standard
1af9e5
    include headers not be used. Causing a build failure. Fix by moving
1af9e5
    the #ifdef HAS_VSX after the standard includes.
1af9e5
    
1af9e5
    https://bugs.kde.org/show_bug.cgi?id=381272
1af9e5
    
1af9e5
    git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16450 a5019735-40e9-0310-863c-91ae7b9d1cf9
1af9e5
1af9e5
diff --git a/none/tests/ppc32/test_isa_2_06_part1.c b/none/tests/ppc32/test_isa_2_06_part1.c
1af9e5
index 7cd4930..7a14c6d 100644
1af9e5
--- a/none/tests/ppc32/test_isa_2_06_part1.c
1af9e5
+++ b/none/tests/ppc32/test_isa_2_06_part1.c
1af9e5
@@ -20,13 +20,14 @@
1af9e5
  The GNU General Public License is contained in the file COPYING.
1af9e5
  */
1af9e5
 
1af9e5
-#ifdef HAS_VSX
1af9e5
-
1af9e5
 #include <stdio.h>
1af9e5
 #include <stdint.h>
1af9e5
 #include <stdlib.h>
1af9e5
 #include <string.h>
1af9e5
 #include <malloc.h>
1af9e5
+
1af9e5
+#ifdef HAS_VSX
1af9e5
+
1af9e5
 #include <altivec.h>
1af9e5
 
1af9e5
 #ifndef __powerpc64__
1af9e5
diff --git a/none/tests/ppc32/test_isa_2_06_part2.c b/none/tests/ppc32/test_isa_2_06_part2.c
1af9e5
index c7bf4fe..2ee7b53 100644
1af9e5
--- a/none/tests/ppc32/test_isa_2_06_part2.c
1af9e5
+++ b/none/tests/ppc32/test_isa_2_06_part2.c
1af9e5
@@ -20,17 +20,18 @@
1af9e5
  The GNU General Public License is contained in the file COPYING.
1af9e5
  */
1af9e5
 
1af9e5
-#ifdef HAS_VSX
1af9e5
-
1af9e5
 #include <stdio.h>
1af9e5
 #include <stdint.h>
1af9e5
 #include <stdlib.h>
1af9e5
 #include <string.h>
1af9e5
 #include <malloc.h>
1af9e5
-#include <altivec.h>
1af9e5
 #include <math.h>
1af9e5
 #include <unistd.h>    // getopt
1af9e5
 
1af9e5
+#ifdef HAS_VSX
1af9e5
+
1af9e5
+#include <altivec.h>
1af9e5
+
1af9e5
 #ifndef __powerpc64__
1af9e5
 typedef uint32_t HWord_t;
1af9e5
 #else
1af9e5
diff --git a/none/tests/ppc32/test_isa_2_06_part3.c b/none/tests/ppc32/test_isa_2_06_part3.c
1af9e5
index 8c74c09..5ebc1a5 100644
1af9e5
--- a/none/tests/ppc32/test_isa_2_06_part3.c
1af9e5
+++ b/none/tests/ppc32/test_isa_2_06_part3.c
1af9e5
@@ -20,17 +20,18 @@
1af9e5
  The GNU General Public License is contained in the file COPYING.
1af9e5
  */
1af9e5
 
1af9e5
-#ifdef HAS_VSX
1af9e5
-
1af9e5
 #include <stdio.h>
1af9e5
 #include <stdint.h>
1af9e5
 #include <stdlib.h>
1af9e5
 #include <string.h>
1af9e5
 #include <malloc.h>
1af9e5
-#include <altivec.h>
1af9e5
 #include <math.h>
1af9e5
 #include <unistd.h>    // getopt
1af9e5
 
1af9e5
+#ifdef HAS_VSX
1af9e5
+
1af9e5
+#include <altivec.h>
1af9e5
+
1af9e5
 #ifndef __powerpc64__
1af9e5
 typedef uint32_t HWord_t;
1af9e5
 #else
1af9e5
1af9e5
diff --git a/none/tests/ppc64/test_isa_2_06_part1.c b/none/tests/ppc64/test_isa_2_06_part1.c
1af9e5
index 7cd4930..7a14c6d 100644
1af9e5
--- a/none/tests/ppc64/test_isa_2_06_part1.c
1af9e5
+++ b/none/tests/ppc64/test_isa_2_06_part1.c
1af9e5
@@ -20,13 +20,14 @@
1af9e5
  The GNU General Public License is contained in the file COPYING.
1af9e5
  */
1af9e5
 
1af9e5
-#ifdef HAS_VSX
1af9e5
-
1af9e5
 #include <stdio.h>
1af9e5
 #include <stdint.h>
1af9e5
 #include <stdlib.h>
1af9e5
 #include <string.h>
1af9e5
 #include <malloc.h>
1af9e5
+
1af9e5
+#ifdef HAS_VSX
1af9e5
+
1af9e5
 #include <altivec.h>
1af9e5
 
1af9e5
 #ifndef __powerpc64__
1af9e5
diff --git a/none/tests/ppc64/test_isa_2_06_part2.c b/none/tests/ppc64/test_isa_2_06_part2.c
1af9e5
index c7bf4fe..2ee7b53 100644
1af9e5
--- a/none/tests/ppc64/test_isa_2_06_part2.c
1af9e5
+++ b/none/tests/ppc64/test_isa_2_06_part2.c
1af9e5
@@ -20,17 +20,18 @@
1af9e5
  The GNU General Public License is contained in the file COPYING.
1af9e5
  */
1af9e5
 
1af9e5
-#ifdef HAS_VSX
1af9e5
-
1af9e5
 #include <stdio.h>
1af9e5
 #include <stdint.h>
1af9e5
 #include <stdlib.h>
1af9e5
 #include <string.h>
1af9e5
 #include <malloc.h>
1af9e5
-#include <altivec.h>
1af9e5
 #include <math.h>
1af9e5
 #include <unistd.h>    // getopt
1af9e5
 
1af9e5
+#ifdef HAS_VSX
1af9e5
+
1af9e5
+#include <altivec.h>
1af9e5
+
1af9e5
 #ifndef __powerpc64__
1af9e5
 typedef uint32_t HWord_t;
1af9e5
 #else
1af9e5
diff --git a/none/tests/ppc64/test_isa_2_06_part3.c b/none/tests/ppc64/test_isa_2_06_part3.c
1af9e5
index 8c74c09..5ebc1a5 100644
1af9e5
--- a/none/tests/ppc64/test_isa_2_06_part3.c
1af9e5
+++ b/none/tests/ppc64/test_isa_2_06_part3.c
1af9e5
@@ -20,17 +20,18 @@
1af9e5
  The GNU General Public License is contained in the file COPYING.
1af9e5
  */
1af9e5
 
1af9e5
-#ifdef HAS_VSX
1af9e5
-
1af9e5
 #include <stdio.h>
1af9e5
 #include <stdint.h>
1af9e5
 #include <stdlib.h>
1af9e5
 #include <string.h>
1af9e5
 #include <malloc.h>
1af9e5
-#include <altivec.h>
1af9e5
 #include <math.h>
1af9e5
 #include <unistd.h>    // getopt
1af9e5
 
1af9e5
+#ifdef HAS_VSX
1af9e5
+
1af9e5
+#include <altivec.h>
1af9e5
+
1af9e5
 #ifndef __powerpc64__
1af9e5
 typedef uint32_t HWord_t;
1af9e5
 #else