aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Anderson <dianders@chromium.org>2017-10-16 13:12:46 -0400
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-11-13 08:54:23 -0500
commit4e56207130eda9a27df116623e2fce7cca2c6764 (patch)
tree2b519884baaa595e139f6d320f672c1102903879
parent3298b690b21cdbe6b2ae8076d9147027f396f2b1 (diff)
kbuild: Cache a few more calls to the compiler
These are a few stragglers that I left out of the original patch to cache calls to the C compiler ("kbuild: Add a cache for generated variables") because they bleed out into the main Makefile and thus uglify things a little bit. The idea is the same here, though. Signed-off-by: Douglas Anderson <dianders@chromium.org> Tested-by: Ingo Molnar <mingo@kernel.org> Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5be2c8d2ce73..d3e6fccfad9b 100644
--- a/Makefile
+++ b/Makefile
@@ -638,7 +638,7 @@ KBUILD_CFLAGS += $(call cc-ifversion, -lt, 0409, \
638KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0) 638KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0)
639 639
640# check for 'asm goto' 640# check for 'asm goto'
641ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y) 641ifeq ($(call shell-cached,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
642 KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO 642 KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
643 KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO 643 KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
644endif 644endif
@@ -774,7 +774,7 @@ KBUILD_CFLAGS += $(call cc-option,-fdata-sections,)
774endif 774endif
775 775
776# arch Makefile may override CC so keep this after arch Makefile is included 776# arch Makefile may override CC so keep this after arch Makefile is included
777NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) 777NOSTDINC_FLAGS += -nostdinc -isystem $(call shell-cached,$(CC) -print-file-name=include)
778CHECKFLAGS += $(NOSTDINC_FLAGS) 778CHECKFLAGS += $(NOSTDINC_FLAGS)
779 779
780# warn about C99 declaration after statement 780# warn about C99 declaration after statement