From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ee0-f43.google.com (mail-ee0-f43.google.com [74.125.83.43]) by dpdk.org (Postfix) with ESMTP id 2D1D84BFE for ; Wed, 20 Mar 2013 17:07:21 +0100 (CET) Received: by mail-ee0-f43.google.com with SMTP id c50so1129307eek.30 for ; Wed, 20 Mar 2013 09:06:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:x-gm-message-state; bh=GLnl9rojRigf2g1UmyCp2v42B5HnvU9z6268nI6v8Vs=; b=Slb2CjbeDiY86aUh0nsgh7b9HMfpg81Yp5He+f8+DPWciRUJlWjaQA5N+K3nSsmk1M kz7iusCaY+tVq1N8vNhoxhsVv2HbsfiYSyeEwl8Hl6tfPERWRxjJidi+kUk/633ECpoh VLGyh1SDC/8BgAC40oxa4A/SLWlbcM9FX87OKlWxa/rHLrJew/7ggpKa6422/f2hKw87 GWPlNU/gak8b5LyHUswTRmtz6bSZEAOsok3SK67NWaVN4mAz1l9LFlohEqMVqwYxTujV centHfN6BjWtJ4xryoz57OGDJfvNWP8ij68Odq74hesP/GFimwurvs0KDQ7eY8WpvICZ 6uFQ== X-Received: by 10.14.173.67 with SMTP id u43mr73265720eel.22.1363795581526; Wed, 20 Mar 2013 09:06:21 -0700 (PDT) Received: from 6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPS id 3sm3456459eej.6.2013.03.20.09.06.19 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 20 Mar 2013 09:06:20 -0700 (PDT) Received: by 6wind.com (sSMTP sendmail emulation); Wed, 20 Mar 2013 17:06:18 +0100 From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 20 Mar 2013 17:04:53 +0100 Message-Id: X-Mailer: git-send-email 1.7.2.5 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQlMMjO1rbpOko/u4oUF2ucKmT6BaML4fs+lk30qf+9Rr6TYBX0fH61gzpcyTgYR7LH9eF4x Subject: [dpdk-dev] [PATCH 05/22] mk: allow corei7-avx flag with gcc 4.7 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: , X-List-Received-Date: Wed, 20 Mar 2013 16:07:21 -0000 From: Zijie Pan In rte.toolchain-compat.mk, ensure MACHINE_CFLAGS is initialized when using GCC 4.7. Update the GCC 4.6 test to also include GCC 4.7. Acked-by: Ivan Boule Acked-by: Adrien Mazarguil Signed-off-by: Krzysztof Witek Signed-off-by: Zijie Pan --- mk/toolchain/gcc/rte.toolchain-compat.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mk/toolchain/gcc/rte.toolchain-compat.mk b/mk/toolchain/gcc/rte.toolchain-compat.mk index 2e05ecb..137659d 100644 --- a/mk/toolchain/gcc/rte.toolchain-compat.mk +++ b/mk/toolchain/gcc/rte.toolchain-compat.mk @@ -59,7 +59,7 @@ else # GCC 4.6.x - added support for corei7, corei7-avx # GCC 4.7.x - added support for fsgsbase, rdrnd, f16c, core-avx-i, core-avx2 - ifeq ($(shell test $(GCC_MINOR_VERSION) -lt 7 && echo 1), 1) + ifeq ($(shell test $(GCC_MINOR_VERSION) -le 7 && echo 1), 1) MACHINE_CFLAGS := $(patsubst -march=core-avx-i,-march=corei7-avx,$(MACHINE_CFLAGS)) MACHINE_CFLAGS := $(patsubst -march=core-avx2,-march=corei7-avx,$(MACHINE_CFLAGS)) endif -- 1.7.2.5