summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/valgrind/valgrind/s390x_vec_op_t.patch
blob: eea671da0a26f26ac7214fc6b72a8974119e4ff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
s390x_vec_op_t is not needed anywhere, only elements of enum are accessed
removing it ensures that valgrind can be built with -fno-common option

Fixes
ld: ../../VEX/libvex-amd64-linux.a(libvex_amd64_linux_a-guest_s390_helpers.o):/usr/src/debug/valgrind/3.15.0-r0/build/VEX/../../valgrind-3.15.0/VEX/priv/guest_s390_defs.h:289: multiple definition of `s390x_vec_op_t'; ../../VEX/libvexmultiarch-amd64-linux.a(libvexmultiarch_amd64_linux_a-multiarch_main_main.o):/usr/src/debug/valgrind/3.15.0-r0/build/VEX/../../valgrind-3.15.0/VEX/priv/guest_s390_defs.h:289: first defined here

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/VEX/priv/guest_s390_defs.h
+++ b/VEX/priv/guest_s390_defs.h
@@ -286,7 +286,7 @@ enum {
    S390_VEC_OP_VFCHE = 18,
    S390_VEC_OP_VFTCI = 19,
    S390_VEC_OP_LAST = 20 // supposed to be the last element in enum
-} s390x_vec_op_t;
+};
 
 /* Arguments of s390x_dirtyhelper_vec_op(...) which are packed into one
    ULong variable.