x86/kbuild: Use cc-option to enable -falign-{jumps/loops}
authorMatthias Kaehlcke <mka@chromium.org>
Thu, 13 Apr 2017 17:26:09 +0000 (10:26 -0700)
committerIngo Molnar <mingo@kernel.org>
Mon, 17 Apr 2017 10:39:37 +0000 (12:39 +0200)
commit2c4fd1ac3ff167c91272dc43c7bfd2269ef61557
tree49e76d1f75988a681569ecc1b356668d69bc7f75
parent4f7d029b9bf009fbee76bb10c0c4351a1870d2f3
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