From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: [PATCH 1/2] net/thunderx: select -fno-prefetch-loop-arrays only for gcc Date: Mon, 27 Jun 2016 21:46:05 +0530 Message-ID: <1467044166-31912-1-git-send-email-jerin.jacob@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , , , Jerin Jacob To: Return-path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0096.outbound.protection.outlook.com [157.56.110.96]) by dpdk.org (Postfix) with ESMTP id EEEFC5955 for ; Mon, 27 Jun 2016 18:16:47 +0200 (CEST) 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" 'fno-prefetch-loop-arrays' optimization flag is not supported with clang Fixes: dcc49041 (net/thunderx: add single and multi-segment Tx functions") Signed-off-by: Jerin Jacob Reported-by: Ferruh Yigit --- drivers/net/thunderx/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/thunderx/Makefile b/drivers/net/thunderx/Makefile index 9079b5b..078237e 100644 --- a/drivers/net/thunderx/Makefile +++ b/drivers/net/thunderx/Makefile @@ -56,7 +56,10 @@ SRCS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += nicvf_hw.c SRCS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += nicvf_mbox.c SRCS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += nicvf_ethdev.c -CFLAGS_nicvf_rxtx.o += -fno-prefetch-loop-arrays -Ofast +ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y) +CFLAGS_nicvf_rxtx.o += -fno-prefetch-loop-arrays +endif +CFLAGS_nicvf_rxtx.o += -Ofast # this lib depends upon: DEPDIRS-$(CONFIG_RTE_LIBRTE_THUNDERX_NICVF_PMD) += lib/librte_eal lib/librte_ether -- 2.5.5