]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
ppc64 doesn't compile test_isa_2_06_partx.c without VSX support
authorMark Wielaard <mark@klomp.org>
Fri, 16 Jun 2017 09:33:35 +0000 (09:33 +0000)
committerMark Wielaard <mark@klomp.org>
Fri, 16 Jun 2017 09:33:35 +0000 (09:33 +0000)
The #ifdef HAS_VSX guard is wrongly placed. It makes the standard
include headers not be used. Causing a build failure. Fix by moving
the #ifdef HAS_VSX after the standard includes.

https://bugs.kde.org/show_bug.cgi?id=381272

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16450

NEWS
none/tests/ppc32/test_isa_2_06_part1.c
none/tests/ppc32/test_isa_2_06_part2.c
none/tests/ppc32/test_isa_2_06_part3.c

diff --git a/NEWS b/NEWS
index 01eb0defbe999c2a24d76f75dee23fa7963a0032..722910729dd69e34cd9e55254111caf53ce311da 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -37,6 +37,7 @@ where XXXXXX is the bug number as listed below.
 
 380397  s390x: __GI_strcspn() replacemenet needed
 381162  possible array overrun in VEX register allocator
+381272  ppc64 doesn't compile test_isa_2_06_partx.c without VSX support
 
 
 Release 3.13.0 (15 June 2017)
index 7cd49301f8ad6560bdcb48d2cd07a12196b96812..7a14c6df31adc882065e64c7fed685d9e962ee0e 100644 (file)
  The GNU General Public License is contained in the file COPYING.
  */
 
-#ifdef HAS_VSX
-
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <malloc.h>
+
+#ifdef HAS_VSX
+
 #include <altivec.h>
 
 #ifndef __powerpc64__
index c7bf4fe697749c564e834392363847f01781d996..2ee7b53ced962cfe6b4f5332acb8833f1d626817 100644 (file)
  The GNU General Public License is contained in the file COPYING.
  */
 
-#ifdef HAS_VSX
-
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <malloc.h>
-#include <altivec.h>
 #include <math.h>
 #include <unistd.h>    // getopt
 
+#ifdef HAS_VSX
+
+#include <altivec.h>
+
 #ifndef __powerpc64__
 typedef uint32_t HWord_t;
 #else
index 8c74c09d4ea771e60aa7808815e61aaf6fe97f95..5ebc1a5e7f7d212d9fdeedb5409ee5d417cccd76 100644 (file)
  The GNU General Public License is contained in the file COPYING.
  */
 
-#ifdef HAS_VSX
-
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <malloc.h>
-#include <altivec.h>
 #include <math.h>
 #include <unistd.h>    // getopt
 
+#ifdef HAS_VSX
+
+#include <altivec.h>
+
 #ifndef __powerpc64__
 typedef uint32_t HWord_t;
 #else