From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932179Ab2HHG0K (ORCPT ); Wed, 8 Aug 2012 02:26:10 -0400 Received: from mga11.intel.com ([192.55.52.93]:48362 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932126Ab2HHG0F (ORCPT ); Wed, 8 Aug 2012 02:26:05 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="131448190" From: Dragos Tatulea To: hpa@linux.intel.com Cc: linux-kernel@vger.kernel.org, Dragos Tatulea Subject: [PATCH] x86: set fpmath to 387 to avoid gcc warnings Date: Wed, 8 Aug 2012 09:27:41 +0300 Message-Id: <1344407261-1339-1-git-send-email-dragos.tatulea@intel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If gcc has a different default fpmath set (ex: sse), many unuseful warnings will be spewed. This can affect out of tree modules that compile with -Werror (ex: systemtap stp scripts). Be paranoid and add -msoft-float as well to try to get an error if FP instructions are generated at all. Signed-off-by: Dragos Tatulea --- arch/x86/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index b1c611e..b771d0b 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -130,6 +130,7 @@ KBUILD_CFLAGS += -fno-asynchronous-unwind-tables # prevent gcc from generating any FP code by mistake KBUILD_CFLAGS += $(call cc-option,-mno-sse -mno-mmx -mno-sse2 -mno-3dnow,) KBUILD_CFLAGS += $(call cc-option,-mno-avx,) +KBUILD_CFLAGS += $(call cc-option,-mfpmath=387 -msoft-float,) KBUILD_CFLAGS += $(mflags-y) KBUILD_AFLAGS += $(mflags-y) -- 1.7.9.5