summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/valgrind/valgrind/0001-fix-opcode-not-supported-on-mips32-linux.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind/0001-fix-opcode-not-supported-on-mips32-linux.patch')
-rw-r--r--meta/recipes-devtools/valgrind/valgrind/0001-fix-opcode-not-supported-on-mips32-linux.patch82
1 files changed, 82 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/0001-fix-opcode-not-supported-on-mips32-linux.patch b/meta/recipes-devtools/valgrind/valgrind/0001-fix-opcode-not-supported-on-mips32-linux.patch
new file mode 100644
index 0000000000..39b624d9f6
--- /dev/null
+++ b/meta/recipes-devtools/valgrind/valgrind/0001-fix-opcode-not-supported-on-mips32-linux.patch
@@ -0,0 +1,82 @@
1From fb5362f205b37c5060fcd764a7ed393abe4f2f3d Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Fri, 27 Jul 2018 17:39:37 +0800
4Subject: [PATCH 1/2] fix opcode not supported on mips32-linux
5
6While build tests(`make check') on mips32-linux, there are
7serial failures such as:
8[snip]
9| mips-wrsmllib32-linux-gcc -meb -mabi=32 -mhard-float -c
10-o atomic_incs-atomic_incs.o `test -f 'atomic_incs.c' || echo
11'../../../valgrind-3.13.0/memcheck/tests/'`atomic_incs.c
12| /tmp/ccqrmINN.s: Assembler messages:
13| /tmp/ccqrmINN.s:247: Error: opcode not supported on this
14processor: mips1 (mips1) `ll $t3,0($t1)'
15| /tmp/ccqrmINN.s:249: Error: opcode not supported on this
16processor: mips1 (mips1) `sc $t3,0($t1)'
17[snip]
18
19Since the following commit applied, it defines CLFAGS for mips32,
20but missed to pass them to tests which caused the above failure
21...
223e344c57f Merge in a port for mips32-linux
23...
24
25Upstream-Status: Submitted [https://bugs.kde.org/show_bug.cgi?id=396905]
26Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
27---
28 helgrind/tests/Makefile.am | 5 +++++
29 memcheck/tests/Makefile.am | 5 +++++
30 none/tests/mips32/Makefile.am | 4 ++++
31 3 files changed, 14 insertions(+)
32
33diff --git a/helgrind/tests/Makefile.am b/helgrind/tests/Makefile.am
34index ad1af191a..6209d35a7 100644
35--- a/helgrind/tests/Makefile.am
36+++ b/helgrind/tests/Makefile.am
37@@ -214,6 +214,11 @@ check_PROGRAMS += annotate_rwlock
38 endif
39
40 AM_CFLAGS += $(AM_FLAG_M3264_PRI)
41+
42+if VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX
43+AM_CFLAGS += $(AM_CFLAGS_MIPS32_LINUX)
44+endif
45+
46 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
47
48 LDADD = -lpthread
49diff --git a/memcheck/tests/Makefile.am b/memcheck/tests/Makefile.am
50index 84e49405f..aff861a32 100644
51--- a/memcheck/tests/Makefile.am
52+++ b/memcheck/tests/Makefile.am
53@@ -443,6 +443,11 @@ check_PROGRAMS += reach_thread_register
54 endif
55
56 AM_CFLAGS += $(AM_FLAG_M3264_PRI)
57+
58+if VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX
59+AM_CFLAGS += $(AM_CFLAGS_MIPS32_LINUX)
60+endif
61+
62 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
63
64 if VGCONF_PLATFORMS_INCLUDE_ARM_LINUX
65diff --git a/none/tests/mips32/Makefile.am b/none/tests/mips32/Makefile.am
66index d11591d45..602cd26f6 100644
67--- a/none/tests/mips32/Makefile.am
68+++ b/none/tests/mips32/Makefile.am
69@@ -99,6 +99,10 @@ check_PROGRAMS = \
70 round_fpu64 \
71 fpu_branches
72
73+if VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX
74+AM_CFLAGS += $(AM_CFLAGS_MIPS32_LINUX)
75+endif
76+
77 AM_CFLAGS += @FLAG_M32@
78 AM_CXXFLAGS += @FLAG_M32@
79 AM_CCASFLAGS += @FLAG_M32@
80--
812.17.1
82