mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
valgrind: fix ptest compilation for PowerPC64
The fix is similar to what was done for PowerPC32. It solves below error, while compiling for PowerPC64, -- snip -- | ../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c: In function 'usage': | ../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:3: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration] | fprintf(stderr, | ^~~~~~~ | ../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:3: warning: incompatible implicit declaration of built-in function 'fprintf' | ../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:3: note: include '<stdio.h>' or provide a declaration of 'fprintf' | ../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:11: error: 'stderr' undeclared (first use in this function) | fprintf(stderr, | ^~~~~~ -- snip -- (From OE-Core rev: 9f82bb4bf3d0ded246eb252b3f9b4b618b22fc95) Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8cc8988943
commit
c7d80dc8d7
@@ -12,6 +12,11 @@ The #ifdef HAS_VSX guard is wrongly placed. It makes the standard
|
|||||||
include headers not be used. Causing a build failure. Fix by moving
|
include headers not be used. Causing a build failure. Fix by moving
|
||||||
the #ifdef HAS_VSX after the standard includes.
|
the #ifdef HAS_VSX after the standard includes.
|
||||||
|
|
||||||
|
[v2 changes]
|
||||||
|
- Add #ifdef HAS_VSX guard correctly for ppc64 test_isa_2_06_partx.c
|
||||||
|
test cases. The changes are similar to what was done for ppc32.
|
||||||
|
|
||||||
|
Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
|
||||||
Index: none/tests/ppc32/test_isa_2_06_part3.c
|
Index: none/tests/ppc32/test_isa_2_06_part3.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- a/none/tests/ppc32/test_isa_2_06_part3.c (revision 16449)
|
--- a/none/tests/ppc32/test_isa_2_06_part3.c (revision 16449)
|
||||||
@@ -85,3 +90,76 @@ Index: none/tests/ppc32/test_isa_2_06_part2.c
|
|||||||
#ifndef __powerpc64__
|
#ifndef __powerpc64__
|
||||||
typedef uint32_t HWord_t;
|
typedef uint32_t HWord_t;
|
||||||
#else
|
#else
|
||||||
|
Index: none/tests/ppc64/test_isa_2_06_part3.c
|
||||||
|
===================================================================
|
||||||
|
--- a/none/tests/ppc64/test_isa_2_06_part3.c (revision 16449)
|
||||||
|
+++ b/none/tests/ppc64/test_isa_2_06_part3.c (revision 16450)
|
||||||
|
@@ -20,17 +20,18 @@
|
||||||
|
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: none/tests/ppc64/test_isa_2_06_part1.c
|
||||||
|
===================================================================
|
||||||
|
--- a/none/tests/ppc64/test_isa_2_06_part1.c (revision 16449)
|
||||||
|
+++ b/none/tests/ppc64/test_isa_2_06_part1.c (revision 16450)
|
||||||
|
@@ -20,13 +20,14 @@
|
||||||
|
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: none/tests/ppc64/test_isa_2_06_part2.c
|
||||||
|
===================================================================
|
||||||
|
--- a/none/tests/ppc64/test_isa_2_06_part2.c (revision 16449)
|
||||||
|
+++ b/none/tests/ppc64/test_isa_2_06_part2.c (revision 16450)
|
||||||
|
@@ -20,17 +20,18 @@
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user