From: tip-bot for Matthias Kaehlcke <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
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
Subject: [tip:x86/build] x86/kbuild: Use cc-option to enable -falign-{jumps/loops}
Date: Tue, 18 Apr 2017 00:25:44 -0700 [thread overview]
Message-ID: <tip-2c4fd1ac3ff167c91272dc43c7bfd2269ef61557@git.kernel.org> (raw)
In-Reply-To: <20170413172609.118122-1-mka@chromium.org>
Commit-ID: 2c4fd1ac3ff167c91272dc43c7bfd2269ef61557
Gitweb: http://git.kernel.org/tip/2c4fd1ac3ff167c91272dc43c7bfd2269ef61557
Author: Matthias Kaehlcke <mka@chromium.org>
AuthorDate: Thu, 13 Apr 2017 10:26:09 -0700
Committer: Ingo Molnar <mingo@kernel.org>
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 <mka@chromium.org>
Cc: Greg Hackmann <ghackmann@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Michael Davidson <md@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: grundler@chromium.org
Link: http://lkml.kernel.org/r/20170413172609.118122-1-mka@chromium.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
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)
prev parent reply other threads:[~2017-04-18 7:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-13 17:26 [PATCH] x86/kbuild: Use cc-option to enable -falign-{jumps/loops} Matthias Kaehlcke
2017-04-18 7:25 ` tip-bot for Matthias Kaehlcke [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-2c4fd1ac3ff167c91272dc43c7bfd2269ef61557@git.kernel.org \
--to=tipbot@zytor.com \
--cc=ghackmann@google.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=md@google.com \
--cc=mingo@kernel.org \
--cc=mka@chromium.org \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
--cc=yamada.masahiro@socionext.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).