summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/valgrind/valgrind/remove-arm-variant-specific.patch
blob: f84bf9ae9a19a62e1288b663e0940b89bb8bea8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Remove tests that require thumb compiler flags

Default compiler options for arm machines are incompatible with the
'-mthumb' compiler option imposed by the intdiv and lrt test
applications, so those two are removed from the ptest build.

Upstream-Status: Pending

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>

Index: valgrind-3.10.0/none/tests/arm/Makefile.am
===================================================================
--- valgrind-3.10.0.orig/none/tests/arm/Makefile.am
+++ valgrind-3.10.0/none/tests/arm/Makefile.am
@@ -17,15 +17,16 @@ EXTRA_DIST = \
 	vfp.stdout.exp vfp.stderr.exp vfp.vgtest \
 	vfpv4_fma.stdout.exp vfpv4_fma.stderr.exp vfpv4_fma.vgtest
 
+# For yocto:
+#  Only include tests that don't require Thumb.
+#  Only use CFLAGS passed in by the build system.
+# Some tests may fail, but all tests must compile.
 check_PROGRAMS = \
 	allexec \
-	intdiv \
-	ldrt \
 	ldrt_arm \
 	neon128 \
 	neon64 \
 	v6intARM \
-	v6intThumb \
 	v6media \
 	vcvt_fixed_float_VFP \
 	vfp \
@@ -36,34 +37,3 @@ AM_CXXFLAGS  += @FLAG_M32@
 AM_CCASFLAGS += @FLAG_M32@
 
 allexec_CFLAGS		= $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
-
-# These two are specific to their ARM/Thumb respectively and so we
-# hardwire -marm/-mthumb.  neon64 and neon128 are compilable on both,
-# however, ask for them to be compiled on thumb, as that looks
-# like that's going to be the more common use case.  They also
-# need special helping w.r.t -mfpu and -mfloat-abi, though.
-# Also force -O0 since -O takes hundreds of MB of memory 
-# for v6intThumb.c.
-v6intARM_CFLAGS   = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a8 -marm
-v6intThumb_CFLAGS = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a8 -mthumb
-
-v6media_CFLAGS    = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a8 -mthumb
-
-vfp_CFLAGS        = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a8 \
-			-mfpu=neon \
-			-mthumb
-
-
-neon128_CFLAGS    = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a8 \
-			-mfpu=neon \
-			-mthumb
-
-neon64_CFLAGS     = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a8 \
-			-mfpu=neon \
-			-mthumb
-
-intdiv_CFLAGS	  = $(AM_CFLAGS) -g -mcpu=cortex-a15 -mthumb
-ldrt_CFLAGS	  = $(AM_CFLAGS) -g -mcpu=cortex-a8 -mthumb
-ldrt_arm_CFLAGS	  = $(AM_CFLAGS) -g -mcpu=cortex-a8 -marm
-
-vfpv4_fma_CFLAGS  = $(AM_CFLAGS) -g -O0 -mcpu=cortex-a15 -mfpu=vfpv4 -marm
OpenPOWER on IntegriCloud