From patchwork Mon Apr 4 10:56:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Mrzyglod X-Patchwork-Id: 11902 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id EC7C12C5F; Mon, 4 Apr 2016 12:57:25 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id AE5972C5A for ; Mon, 4 Apr 2016 12:57:24 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 04 Apr 2016 03:57:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,440,1455004800"; d="scan'208";a="951174303" Received: from unknown ([10.217.248.155]) by fmsmga002.fm.intel.com with SMTP; 04 Apr 2016 03:57:21 -0700 Received: by (sSMTP sendmail emulation); Mon, 04 Apr 2016 12:56:59 +0200 From: Daniel Mrzyglod To: dev@dpdk.org Cc: jingjing.wu@intel.com, pablo.de.lara.guarch@intel.com Date: Mon, 4 Apr 2016 12:56:54 +0200 Message-Id: <1459767414-8416-1-git-send-email-danielx.t.mrzyglod@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1459759611-13788-3-git-send-email-danielx.t.mrzyglod@intel.com> References: <1459759611-13788-3-git-send-email-danielx.t.mrzyglod@intel.com> Subject: [dpdk-dev] [PATCH v2] examples: fix build errors for icc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- examples/ipsec-secgw/Makefile | 4 ++++ examples/vmdq_dcb/Makefile | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) 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