From patchwork Thu Mar 6 18:03:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Behan Webster X-Patchwork-Id: 25832 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 02ABB203C3 for ; Thu, 6 Mar 2014 18:03:26 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id fp1sf6751533pdb.4 for ; Thu, 06 Mar 2014 10:03:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=1eqm7iBc4eJB92ylxmhbc8IHPR47l+2/P1gnLIA2WeM=; b=RcM7nAabP6+mqt9RhX/Spw7LgoBF1+ucF5xPtijShQRK0YicqwvbB23POmdPo5QUWf aY6GiF/Pg5FDCXW6k2j/W801uxEnaZO+l7dmYanL5TaUrP9aHCV3y+wA2mfnRZw7bkK/ Mtm55jIQfylmscBBojveT++hzNuwlelWx3ihWRyuwy2gSP8UvV07XwM+XyeOy0YdOKw0 0W5/51ICjQDLhCLYjdJRmkXHNA01DdfUjWPbANrUBuPQlJuBP1wqmxulLoiMGsWh/CHJ ZxcsxBjy8hJYm3hYgfndlSjfj7SZ0F4T1t8shliHEHM3u//uX9drex4g2ZUPjRWmdjxV yR/g== X-Gm-Message-State: ALoCoQk0qIT3tnsGMUlsjIdp/u6Jm+msJDtHcL+nDlgSlppwbDBr/Sozke8dbgRUAIrgf52UsXPX X-Received: by 10.66.252.198 with SMTP id zu6mr5841698pac.25.1394129006196; Thu, 06 Mar 2014 10:03:26 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.212 with SMTP id 78ls869016qgt.30.gmail; Thu, 06 Mar 2014 10:03:25 -0800 (PST) X-Received: by 10.52.113.1 with SMTP id iu1mr1774782vdb.35.1394129005933; Thu, 06 Mar 2014 10:03:25 -0800 (PST) Received: from mail-ve0-x22a.google.com (mail-ve0-x22a.google.com [2607:f8b0:400c:c01::22a]) by mx.google.com with ESMTPS id ku3si1364205veb.60.2014.03.06.10.03.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Mar 2014 10:03:25 -0800 (PST) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22a 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::22a; Received: by mail-ve0-f170.google.com with SMTP id pa12so3066065veb.29 for ; Thu, 06 Mar 2014 10:03:25 -0800 (PST) X-Received: by 10.52.23.68 with SMTP id k4mr8852696vdf.24.1394129005845; Thu, 06 Mar 2014 10:03:25 -0800 (PST) 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.78.9 with SMTP id i9csp56708vck; Thu, 6 Mar 2014 10:03:25 -0800 (PST) X-Received: by 10.66.119.172 with SMTP id kv12mr16274894pab.34.1394129004864; Thu, 06 Mar 2014 10:03:24 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yo5si5649243pab.208.2014.03.06.10.03.23; Thu, 06 Mar 2014 10:03:23 -0800 (PST) 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 S1753321AbaCFSDN (ORCPT + 26 others); Thu, 6 Mar 2014 13:03:13 -0500 Received: from mail-pb0-f48.google.com ([209.85.160.48]:40574 "EHLO mail-pb0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753063AbaCFSDL (ORCPT ); Thu, 6 Mar 2014 13:03:11 -0500 Received: by mail-pb0-f48.google.com with SMTP id md12so2933588pbc.21 for ; Thu, 06 Mar 2014 10:03:11 -0800 (PST) X-Received: by 10.67.22.100 with SMTP id hr4mr15986210pad.112.1394128991358; Thu, 06 Mar 2014 10:03:11 -0800 (PST) Received: from galdor.websterwood.com (S0106dc9fdb80cffd.gv.shawcable.net. [96.50.97.138]) by mx.google.com with ESMTPSA id j3sm22137095pbh.38.2014.03.06.10.03.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Mar 2014 10:03:09 -0800 (PST) From: behanw@converseincode.com To: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org Cc: linux-kernel@vger.kernel.org, dwmw2@infradead.org, pageexec@freemail.hu, =?UTF-8?q?Jan-Simon=20M=C3=B6ller?= , Behan Webster , Mark Charlebois Subject: [PATCH 5/5 v2] x86 kbuild: LLVMLinux: More cc-options added for clang Date: Thu, 6 Mar 2014 10:03:06 -0800 Message-Id: <1394128986-3915-1-git-send-email-behanw@converseincode.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <530D4445.8060304@zytor.com> References: <530D4445.8060304@zytor.com> MIME-Version: 1.0 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::22a 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 (bad format) 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: Jan-Simon Möller Protect more options for x86 with cc-option so that we don't get errors when using clang instead of gcc. Add more or different options when using clang as well. Also need to enforce that SSE is off for clang and the stack is 8-byte aligned. Removed improper reassetion of -mno-sse and -mpreferred-stack-boundary Signed-off-by: Jan-Simon Möller Signed-off-by: Behan Webster Signed-off-by: Mark Charlebois --- arch/x86/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index eeda43a..d5a5a91 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -108,7 +108,7 @@ else # this works around some issues with generating unwind tables in older gccs # newer gccs do it by default - KBUILD_CFLAGS += -maccumulate-outgoing-args + KBUILD_CFLAGS += $(call cc-option,-maccumulate-outgoing-args) endif # Make sure compiler does not have buggy stack-protector support.