From 1c063070cf6bc2b81674f60b6ad6ae0ee9b4152f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Mon, 23 Feb 2015 22:59:53 +0000 Subject: generic: early (incomplete!) 4.0 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafał Miłecki SVN-Revision: 44511 --- .../linux/generic/patches-4.0/201-extra_optimization.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 target/linux/generic/patches-4.0/201-extra_optimization.patch (limited to 'target/linux/generic/patches-4.0/201-extra_optimization.patch') diff --git a/target/linux/generic/patches-4.0/201-extra_optimization.patch b/target/linux/generic/patches-4.0/201-extra_optimization.patch new file mode 100644 index 0000000000..a3398267d6 --- /dev/null +++ b/target/linux/generic/patches-4.0/201-extra_optimization.patch @@ -0,0 +1,14 @@ +--- a/Makefile ++++ b/Makefile +@@ -614,9 +614,9 @@ include $(srctree)/arch/$(SRCARCH)/Makef + KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) + + ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE +-KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,) ++KBUILD_CFLAGS += -Os $(EXTRA_OPTIMIZATION) $(call cc-disable-warning,maybe-uninitialized,) + else +-KBUILD_CFLAGS += -O2 ++KBUILD_CFLAGS += -O2 -fno-reorder-blocks -fno-tree-ch $(EXTRA_OPTIMIZATION) + endif + + # Tell gcc to never replace conditional load with a non-conditional one -- cgit v1.2.3