Merge branch 'lto-411-1' of git://github.com/andikleen/linux-misc into lto-411-1
diff --git a/scripts/Makefile.lto b/scripts/Makefile.lto
index a5b9165..ae89c40 100644
--- a/scripts/Makefile.lto
+++ b/scripts/Makefile.lto
@@ -15,6 +15,7 @@
# 4.8 was very slow
# 4.9 still had a few bugs that needed workarounds
# make it 5.0+ only for now, which is also faster again
+# 5.0 has some rare issues in the lto-streamer, could make this 6.0
ifeq ($(call cc-ifversion, -ge, 0500,y),y)
# is the compiler compiled with LTO?
ifneq ($(call cc-option,${LTO_CFLAGS},n),n)
@@ -58,6 +59,7 @@
ifdef CONFIG_LTO_DEBUG
LTO_FINAL_CFLAGS += -dH -fdump-ipa-cgraph -fdump-ipa-inline-details
+ # useful to add to reproduce compiler crashes
# -Wl,-plugin-save-temps -save-temps
LTO_CFLAGS +=
endif
@@ -68,6 +70,8 @@
KBUILD_CFLAGS += ${LTO_CFLAGS}
+ # finally enable LTO for the final linking stage
+
LDFINAL := ${CONFIG_SHELL} ${srctree}/scripts/gcc-ld \
${LTO_FINAL_CFLAGS}
@@ -76,7 +80,6 @@
# instead.
TMPDIR ?= $(objtree)
export TMPDIR
- $(info setting TMPDIR to objdir for LTO build)
# use plugin aware tools
AR = $(CROSS_COMPILE)gcc-ar