From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas.monjalon@6wind.com>
Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42])
 by dpdk.org (Postfix) with ESMTP id 059A93237
 for <dev@dpdk.org>; Sat,  6 Feb 2016 23:18:43 +0100 (CET)
Received: by mail-wm0-f42.google.com with SMTP id r129so69597441wmr.0
 for <dev@dpdk.org>; Sat, 06 Feb 2016 14:18:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=6wind-com.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:date:message-id:in-reply-to:references;
 bh=uFKPrx3sQsl1+eXaJGQUC/kX1WsEO3DYdHNuO32UpkQ=;
 b=IwW8JPhDVed72Fx9lvpVRJfec29MUjW/hX+7ID2AEIt9ikEQmycAdrk7sQP1jw87/X
 9uAjRTtU4QRszO2eCgVpeV0jvqbQ4F0vq90ZJkccggOaTDhAeA4Cmm8xBDy3rzdJWdBv
 F1P1cpaaxxC2gSexeNC9u3Ud17IHjD+/hFJCBsitnw9TpU4EzJ7750hoM5qvZ+pyWQl8
 AAy77Gqn8qk/MLfnFqh+bAYaMQq6VkuKQahdCbZdCrmL8x5D9VBDj9UWbYsMksvNVd6P
 asxTbXVMCmjtfEQWC8wOGaMAoEIrCE0wJ3NQecEhO4mA+7EmMZaR/8z/vXNADnJUFduj
 iOfw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=uFKPrx3sQsl1+eXaJGQUC/kX1WsEO3DYdHNuO32UpkQ=;
 b=YWxUuXxGhDc6mnj/IGF90kwLar1O0W0+3MEXT+Xm1x4R2uhDlEzU3DIkNnIL/dNMCa
 eCtau3NxMtyCMVAQ3YJfpfxT398RkR+ONEUC8aHKG+wXSylPW655KNU9NVE2O1bpuqPJ
 DG7hfby/46PDmm2kS9opb5zKGXMudwkT+WutDbrBKajvGy7UZLL8XPdzVoBj26cMaVqb
 zxzLEjJLMWN9yZm8XkAK+KKCZK+fCvAsR+ZMvc01jGrCYlxyeOuJmoSnOC3Lagh1atXZ
 4gPssv6aKYYAaoazmOleQD3XMX24MYtT1wD/hSGSEfSnoYj+cN5HRuASX1V4XDjrqR5K
 kClw==
X-Gm-Message-State: AG10YOTZbonQ4NBYeM+EpEBtrfrozOCE86B5qNpDkamUOU+EfyufIZHlV3Bli4sXge9ZvDEs
X-Received: by 10.194.185.199 with SMTP id fe7mr9944631wjc.50.1454797122912;
 Sat, 06 Feb 2016 14:18:42 -0800 (PST)
Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr.
 [109.190.92.136])
 by smtp.gmail.com with ESMTPSA id e9sm22167710wja.25.2016.02.06.14.18.41
 (version=TLSv1/SSLv3 cipher=OTHER);
 Sat, 06 Feb 2016 14:18:42 -0800 (PST)
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: david.marchand@6wind.com,
	ferruh.yigit@intel.com
Date: Sat,  6 Feb 2016 23:17:13 +0100
Message-Id: <1454797033-24057-6-git-send-email-thomas.monjalon@6wind.com>
X-Mailer: git-send-email 2.7.0
In-Reply-To: <1454797033-24057-1-git-send-email-thomas.monjalon@6wind.com>
References: <1454453993-3903-1-git-send-email-thomas.monjalon@6wind.com>
 <1454797033-24057-1-git-send-email-thomas.monjalon@6wind.com>
Cc: dev@dpdk.org, viktorin@rehivetech.com
Subject: [dpdk-dev] [PATCH v2 5/5] eal: remove compiler optimization
	workaround
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Feb 2016 22:18:43 -0000

The compiler optimization was disabled a long time ago
without describing what was the exact issue.
Maybe it does not apply anymore.
As it looks unneeded, let's remove this strange pragma.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
 lib/librte_eal/common/eal_common_cpuflags.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/lib/librte_eal/common/eal_common_cpuflags.c b/lib/librte_eal/common/eal_common_cpuflags.c
index a4c5a29..ecb1240 100644
--- a/lib/librte_eal/common/eal_common_cpuflags.c
+++ b/lib/librte_eal/common/eal_common_cpuflags.c
@@ -36,19 +36,6 @@
 #include <rte_common.h>
 #include <rte_cpuflags.h>
 
-/*
- * This should prevent use of advanced instruction sets in this file. Otherwise
- * the check function itself could cause a crash.
- */
-#ifdef __INTEL_COMPILER
-#pragma optimize ("", off)
-#else
-#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
-#if GCC_VERSION > 404000
-#pragma GCC optimize ("O0")
-#endif
-#endif
-
 /**
  * Checks if the machine is adequate for running the binary. If it is not, the
  * program exits with status 1.
-- 
2.7.0