diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-02 17:37:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-02 17:37:03 -0400 |
commit | e68b4bad71e8739d79f3c9580c719aa70c42fb96 (patch) | |
tree | 797b5b3ee7fe5255e886edf0c82b09c69f039e06 /Makefile | |
parent | 5e46caf62d8910f6999fd378b743b9c0e1b21cf9 (diff) | |
parent | d6289f36aa7d5893d091a7a0c67eee7798719f03 (diff) |
Merge branch 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 build updates from Ingo Molnar:
"The biggest change is the forcing of asm-goto support on x86, which
effectively increases the GCC minimum supported version to gcc-4.5 (on
x86)"
* 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/build: Don't pass in -D__KERNEL__ multiple times
x86: Remove FAST_FEATURE_TESTS
x86: Force asm-goto
x86/build: Drop superfluous ALIGN from the linker script
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -496,6 +496,13 @@ RETPOLINE_CFLAGS_CLANG := -mretpoline-external-thunk | |||
496 | RETPOLINE_CFLAGS := $(call cc-option,$(RETPOLINE_CFLAGS_GCC),$(call cc-option,$(RETPOLINE_CFLAGS_CLANG))) | 496 | RETPOLINE_CFLAGS := $(call cc-option,$(RETPOLINE_CFLAGS_GCC),$(call cc-option,$(RETPOLINE_CFLAGS_CLANG))) |
497 | export RETPOLINE_CFLAGS | 497 | export RETPOLINE_CFLAGS |
498 | 498 | ||
499 | # check for 'asm goto' | ||
500 | ifeq ($(call shell-cached,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y) | ||
501 | CC_HAVE_ASM_GOTO := 1 | ||
502 | KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO | ||
503 | KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO | ||
504 | endif | ||
505 | |||
499 | ifeq ($(config-targets),1) | 506 | ifeq ($(config-targets),1) |
500 | # =========================================================================== | 507 | # =========================================================================== |
501 | # *config targets only - make sure prerequisites are updated, and descend | 508 | # *config targets only - make sure prerequisites are updated, and descend |
@@ -660,12 +667,6 @@ KBUILD_CFLAGS += $(call cc-ifversion, -lt, 0409, \ | |||
660 | # Tell gcc to never replace conditional load with a non-conditional one | 667 | # Tell gcc to never replace conditional load with a non-conditional one |
661 | KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0) | 668 | KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0) |
662 | 669 | ||
663 | # check for 'asm goto' | ||
664 | ifeq ($(call shell-cached,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y) | ||
665 | KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO | ||
666 | KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO | ||
667 | endif | ||
668 | |||
669 | include scripts/Makefile.kcov | 670 | include scripts/Makefile.kcov |
670 | include scripts/Makefile.gcc-plugins | 671 | include scripts/Makefile.gcc-plugins |
671 | 672 | ||