summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>2016-04-04 12:56:54 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-04-04 15:05:40 +0200
commit9cd3ddfb8212ec6fcf817ce7d8b67a336d58d66f (patch)
treeb1743ef826e1152e6dc3c502e9ddc74d963c94d1 /examples
parente34df1cfd596f32eabd647b45cd4a1dfba70bfa0 (diff)
downloaddpdk-9cd3ddfb8212ec6fcf817ce7d8b67a336d58d66f.zip
dpdk-9cd3ddfb8212ec6fcf817ce7d8b67a336d58d66f.tar.gz
dpdk-9cd3ddfb8212ec6fcf817ce7d8b67a336d58d66f.tar.xz
examples: fix build with icc 15.0.1
error: loops in this subroutine are not good vectorization candidates (try compiling with O3 and/or IPO). this error occurs in icc 15.0.1 Solution to disable this diagnostic message https://software.intel.com/en-us/forums/intel-c-compiler/topic/537688 Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application") Fixes: 8cc72f2814dd ("examples/vmdq_dcb: support X710") Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/ipsec-secgw/Makefile4
-rw-r--r--examples/vmdq_dcb/Makefile4
2 files changed, 7 insertions, 1 deletions
diff --git a/examples/ipsec-secgw/Makefile b/examples/ipsec-secgw/Makefile
index da39e49..f9b59c2 100644
--- a/examples/ipsec-secgw/Makefile
+++ b/examples/ipsec-secgw/Makefile
@@ -42,6 +42,10 @@ APP = ipsec-secgw
CFLAGS += -O3 -gdwarf-2
CFLAGS += $(WERROR_FLAGS)
+ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
+CFLAGS_sa.o += -diag-disable=vec
+endif
+
VPATH += $(SRCDIR)/librte_ipsec
diff --git a/examples/vmdq_dcb/Makefile b/examples/vmdq_dcb/Makefile
index 10a9a9a..8c51131 100644
--- a/examples/vmdq_dcb/Makefile
+++ b/examples/vmdq_dcb/Makefile
@@ -51,7 +51,9 @@ CFLAGS += $(WERROR_FLAGS)
ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
CFLAGS_main.o += -Wno-return-type
endif
-
+ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
+CFLAGS_main.o += -diag-disable=vec
+endif
EXTRA_CFLAGS += -O3 -g
include $(RTE_SDK)/mk/rte.extapp.mk