diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -653,6 +653,12 @@ KBUILD_CFLAGS += $(call cc-ifversion, -lt, 0409, \ | |||
653 | # Tell gcc to never replace conditional load with a non-conditional one | 653 | # Tell gcc to never replace conditional load with a non-conditional one |
654 | KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0) | 654 | KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0) |
655 | 655 | ||
656 | # check for 'asm goto' | ||
657 | ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y) | ||
658 | KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO | ||
659 | KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO | ||
660 | endif | ||
661 | |||
656 | include scripts/Makefile.gcc-plugins | 662 | include scripts/Makefile.gcc-plugins |
657 | 663 | ||
658 | ifdef CONFIG_READABLE_ASM | 664 | ifdef CONFIG_READABLE_ASM |
@@ -798,12 +804,6 @@ KBUILD_CFLAGS += $(call cc-option,-Werror=incompatible-pointer-types) | |||
798 | # use the deterministic mode of AR if available | 804 | # use the deterministic mode of AR if available |
799 | KBUILD_ARFLAGS := $(call ar-option,D) | 805 | KBUILD_ARFLAGS := $(call ar-option,D) |
800 | 806 | ||
801 | # check for 'asm goto' | ||
802 | ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y) | ||
803 | KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO | ||
804 | KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO | ||
805 | endif | ||
806 | |||
807 | include scripts/Makefile.kasan | 807 | include scripts/Makefile.kasan |
808 | include scripts/Makefile.extrawarn | 808 | include scripts/Makefile.extrawarn |
809 | include scripts/Makefile.ubsan | 809 | include scripts/Makefile.ubsan |