Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1623210
| From | Matthias Kaehlcke <mka@chromium.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] x86/kbuild: Use cc-option to enable -falign-{jumps/loops} |
| Date | 2017-04-13 19:30 +0200 |
| Message-ID | <tvQJb-6ae-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
clang currently does not support these optimizations, only enable them
when they are available.
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---
arch/x86/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index a94a4d10f2df..73604e18447a 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)
--
2.12.2.715.g7642488e1d-goog
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] x86/kbuild: Use cc-option to enable -falign-{jumps/loops} Matthias Kaehlcke <mka@chromium.org> - 2017-04-13 19:30 +0200
[tip:x86/build] x86/kbuild: Use cc-option to enable -falign-{jumps/loops} tip-bot for Matthias Kaehlcke <tipbot@zytor.com> - 2017-04-18 09:40 +0200
csiph-web