From patchwork Tue Apr 22 05:40:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 28762 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4E6432032B for ; Tue, 22 Apr 2014 05:41:06 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id wn1sf19283061obc.9 for ; Mon, 21 Apr 2014 22:41:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=IhSD6kRkPix94nx/9mkpeYhZN+KazOAlTYvaH+vue9A=; b=WxhxQiz1d7xhkVKg2sEIZ/CNilUeBuN1sasAMoYZ8WzvXbLb113KGXFetI13510FG6 OhN80xkUg7zXGNhEkzoVqCSbsQAi7S1O/knFP/cSst7yuxIH6QnMIUo7IEHFYGMSsMwD etrDaJG/1iXhx8dOgctScpNpL9pJNY1soqWhX05BP6cNT/sglEp711iAUE3ilJSvixTx qMCfutAQJgxVaoiP5q+eIUFPib5ctU5Eey2ynH4hqxu58jvhNmWotsrmbydjZe+FVSUe 0ahcgT6JAPVye7YFhebvPzPvokv3N4pbn8eDp7cFCNnTsayMUxlGKJ2ZhW0EUluETKzC 2bdw== X-Gm-Message-State: ALoCoQlwGlXaKvfvHN28TWNXz2ptt+0XZPnfUAJyaZX6HVQAjVKNggNFXnyPxK6PN9mfWvl9QhH/ X-Received: by 10.182.34.169 with SMTP id a9mr2931731obj.49.1398145265472; Mon, 21 Apr 2014 22:41:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.144 with SMTP id 16ls2554207qgt.62.gmail; Mon, 21 Apr 2014 22:41:05 -0700 (PDT) X-Received: by 10.52.191.100 with SMTP id gx4mr29709141vdc.4.1398145265341; Mon, 21 Apr 2014 22:41:05 -0700 (PDT) Received: from mail-ve0-x229.google.com (mail-ve0-x229.google.com [2607:f8b0:400c:c01::229]) by mx.google.com with ESMTPS id ph6si6702493veb.107.2014.04.21.22.41.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 22:41:05 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::229 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::229; Received: by mail-ve0-f169.google.com with SMTP id pa12so9425142veb.28 for ; Mon, 21 Apr 2014 22:41:05 -0700 (PDT) X-Received: by 10.220.250.203 with SMTP id mp11mr34962424vcb.2.1398145265252; Mon, 21 Apr 2014 22:41:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp344052vcb; Mon, 21 Apr 2014 22:41:04 -0700 (PDT) X-Received: by 10.67.13.226 with SMTP id fb2mr7139709pad.146.1398145264490; Mon, 21 Apr 2014 22:41:04 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id px1si10231954pbb.284.2014.04.21.22.41.03; Mon, 21 Apr 2014 22:41:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751959AbaDVFkv (ORCPT + 26 others); Tue, 22 Apr 2014 01:40:51 -0400 Received: from mail-ig0-f171.google.com ([209.85.213.171]:40424 "EHLO mail-ig0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751166AbaDVFks (ORCPT ); Tue, 22 Apr 2014 01:40:48 -0400 Received: by mail-ig0-f171.google.com with SMTP id c1so2593240igq.10 for ; Mon, 21 Apr 2014 22:40:48 -0700 (PDT) X-Received: by 10.42.232.206 with SMTP id jv14mr32311952icb.52.1398145248082; Mon, 21 Apr 2014 22:40:48 -0700 (PDT) Received: from galdor.hil-sanbegi.snd.wayport.net (ip-64-134-224-141.public.wayport.net. [64.134.224.141]) by mx.google.com with ESMTPSA id b8sm25693482igx.3.2014.04.21.22.40.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 22:40:47 -0700 (PDT) From: behanw@converseincode.com To: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org Cc: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, dwmw2@infradead.org, pageexec@freemail.hu, Behan Webster Subject: [PATCH] x86: LLVMLinux: Wrap -mno-80387 with cc-option Date: Mon, 21 Apr 2014 22:40:27 -0700 Message-Id: <1398145227-25053-1-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.8.3.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Original-Sender: behanw@converseincode.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::229 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@converseincode.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Behan Webster Wrap -mno-80387 gcc options with cc-option so they don't break clang. Signed-off-by: Behan Webster --- arch/x86/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index d1b7c37..ce6ad7e 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -83,7 +83,9 @@ else KBUILD_CFLAGS += -m64 # Don't autogenerate traditional x87, MMX or SSE instructions - KBUILD_CFLAGS += -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 + KBUILD_CFLAGS += -mno-mmx -mno-sse + KBUILD_CFLAGS += $(call cc-option,-mno-80387) + KBUILD_CFLAGS += $(call cc-option,-mno-fp-ret-in-387) # Use -mpreferred-stack-boundary=3 if supported. KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=3)