]> git.droids-corp.org - dpdk.git/commitdiff
examples: fix build with icc 15.0.1
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Mon, 4 Apr 2016 10:56:54 +0000 (12:56 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 4 Apr 2016 13:05:40 +0000 (15:05 +0200)
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>
examples/ipsec-secgw/Makefile
examples/vmdq_dcb/Makefile

index da39e49e7a6cc8f3bd5bf8fee8d67a93f06b3980..f9b59c22151cbbcce3bc9c3a2226f2428c6acec0 100644 (file)
@@ -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
 
index 10a9a9ab3fb539af877345b1b59b59fe4338a0c5..8c51131b9252d426d1da4ca1554e1c3bb154ce4b 100644 (file)
@@ -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