[linux-yocto] [PATCH 14/14] fixup! Kbuild, lto: Add Link Time Optimization support

Alejandro Hernandez alejandro.hernandez at linux.intel.com
Mon Feb 13 12:41:27 PST 2017


From: Andi Kleen <ak at linux.intel.com>

Signed-off-by: Tom Zanussi <tom.zanussi at linux.intel.com>
---
 scripts/Makefile.lto | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/scripts/Makefile.lto b/scripts/Makefile.lto
index a99ca85..11aed1c 100644
--- a/scripts/Makefile.lto
+++ b/scripts/Makefile.lto
@@ -24,11 +24,12 @@ ifeq ($(call ld-ifversion,-ge,22710001,y),y)
 # gcc 5.0 supports __attribute__((no_reorder)), so we don't
 # need to disable reordering globally, but can only use
 # it on init calls.
-ifeq ($(call cc-ifversion,-ge,0500,y),y)
-	DISABLE_TL_REORDER :=
-else
+# Disabled for now because of some undebugged bug in 5.x
+#ifeq ($(call cc-ifversion,-ge,0500,y),y)
+#	DISABLE_TL_REORDER :=
+#else
 	DISABLE_TL_REORDER := -fno-toplevel-reorder
-endif
+#endif
         LTO_CFLAGS := -flto $(DISABLE_TL_REORDER)
 	LTO_FINAL_CFLAGS := -fuse-linker-plugin
 
-- 
2.6.6



More information about the linux-yocto mailing list