From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932364AbdDRHbo (ORCPT ); Tue, 18 Apr 2017 03:31:44 -0400 Received: from terminus.zytor.com ([65.50.211.136]:49405 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932191AbdDRHbW (ORCPT ); Tue, 18 Apr 2017 03:31:22 -0400 Date: Tue, 18 Apr 2017 00:25:44 -0700 From: tip-bot for Matthias Kaehlcke Message-ID: Cc: mka@chromium.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, yamada.masahiro@socionext.com, md@google.com, ghackmann@google.com, tglx@linutronix.de, hpa@zytor.com Reply-To: linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, md@google.com, ghackmann@google.com, yamada.masahiro@socionext.com, tglx@linutronix.de, hpa@zytor.com, mka@chromium.org, torvalds@linux-foundation.org In-Reply-To: <20170413172609.118122-1-mka@chromium.org> References: <20170413172609.118122-1-mka@chromium.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/build] x86/kbuild: Use cc-option to enable -falign-{jumps/loops} Git-Commit-ID: 2c4fd1ac3ff167c91272dc43c7bfd2269ef61557 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 2c4fd1ac3ff167c91272dc43c7bfd2269ef61557 Gitweb: http://git.kernel.org/tip/2c4fd1ac3ff167c91272dc43c7bfd2269ef61557 Author: Matthias Kaehlcke AuthorDate: Thu, 13 Apr 2017 10:26:09 -0700 Committer: Ingo Molnar CommitDate: Mon, 17 Apr 2017 12:39:37 +0200 x86/kbuild: Use cc-option to enable -falign-{jumps/loops} clang currently does not support these optimizations, only enable them when they are available. Signed-off-by: Matthias Kaehlcke Cc: Greg Hackmann Cc: Linus Torvalds Cc: Masahiro Yamada Cc: Michael Davidson Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: grundler@chromium.org Link: http://lkml.kernel.org/r/20170413172609.118122-1-mka@chromium.org Signed-off-by: Ingo Molnar --- arch/x86/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index a94a4d1..73604e1 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -88,10 +88,10 @@ else KBUILD_CFLAGS += -m64 # Align jump targets to 1 byte, not the default 16 bytes: - KBUILD_CFLAGS += -falign-jumps=1 + KBUILD_CFLAGS += $(call cc-option,-falign-jumps=1) # Pack loops tightly as well: - KBUILD_CFLAGS += -falign-loops=1 + KBUILD_CFLAGS += $(call cc-option,-falign-loops=1) # Don't autogenerate traditional x87 instructions KBUILD_CFLAGS += $(call cc-option,-mno-80387)