app/test: disable variable tracking assignment for memcpy
authorZhihong Wang <zhihong.wang@intel.com>
Thu, 29 Jan 2015 02:38:44 +0000 (10:38 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 25 Feb 2015 10:18:17 +0000 (11:18 +0100)
VTA is for debugging only, it increases compile time and binary size,
especially when there're a lot of inlines.
So disable it since memcpy test contains a lot of inline calls.

Signed-off-by: Zhihong Wang <zhihong.wang@intel.com>
Acked-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test/Makefile

index 89fac6d..9f0262c 100644 (file)
@@ -150,6 +150,12 @@ CFLAGS_test_kni.o += -Wno-deprecated-declarations
 endif
 CFLAGS += -D_GNU_SOURCE
 
+# Disable VTA for memcpy test
+ifeq ($(CC), gcc)
+CFLAGS_test_memcpy.o += -fno-var-tracking-assignments
+CFLAGS_test_memcpy_perf.o += -fno-var-tracking-assignments
+endif
+
 # this application needs libraries first
 DEPDIRS-y += lib