From cc26f768e4ee5ee25a3b784ac6d23578427ccb70 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 29 Jul 2013 09:38:21 +0000 Subject: [PATCH] kernel: stop patching -funit-at-a-time into CFLAGS, it has no effect on recent compilers Signed-off-by: Felix Fietkau SVN-Revision: 37598 --- .../generic/patches-3.10/201-extra_optimization.patch | 10 ---------- .../generic/patches-3.3/201-extra_optimization.patch | 10 ---------- .../generic/patches-3.6/201-extra_optimization.patch | 10 ---------- .../generic/patches-3.8/201-extra_optimization.patch | 10 ---------- .../generic/patches-3.9/201-extra_optimization.patch | 10 ---------- 5 files changed, 50 deletions(-) diff --git a/target/linux/generic/patches-3.10/201-extra_optimization.patch b/target/linux/generic/patches-3.10/201-extra_optimization.patch index 051ede1c6bb5..6af3d01ba225 100644 --- a/target/linux/generic/patches-3.10/201-extra_optimization.patch +++ b/target/linux/generic/patches-3.10/201-extra_optimization.patch @@ -12,13 +12,3 @@ endif include $(srctree)/arch/$(SRCARCH)/Makefile -@@ -647,6 +647,9 @@ endif - NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) - CHECKFLAGS += $(NOSTDINC_FLAGS) - -+# improve gcc optimization -+CFLAGS += $(call cc-option,-funit-at-a-time,) -+ - # warn about C99 declaration after statement - KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) - diff --git a/target/linux/generic/patches-3.3/201-extra_optimization.patch b/target/linux/generic/patches-3.3/201-extra_optimization.patch index 6fe8b0938d60..e724891e4f5d 100644 --- a/target/linux/generic/patches-3.3/201-extra_optimization.patch +++ b/target/linux/generic/patches-3.3/201-extra_optimization.patch @@ -12,13 +12,3 @@ endif include $(srctree)/arch/$(SRCARCH)/Makefile -@@ -620,6 +620,9 @@ endif - NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) - CHECKFLAGS += $(NOSTDINC_FLAGS) - -+# improve gcc optimization -+CFLAGS += $(call cc-option,-funit-at-a-time,) -+ - # warn about C99 declaration after statement - KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) - diff --git a/target/linux/generic/patches-3.6/201-extra_optimization.patch b/target/linux/generic/patches-3.6/201-extra_optimization.patch index ac26108459ee..f255a01c1ad9 100644 --- a/target/linux/generic/patches-3.6/201-extra_optimization.patch +++ b/target/linux/generic/patches-3.6/201-extra_optimization.patch @@ -12,13 +12,3 @@ endif include $(srctree)/arch/$(SRCARCH)/Makefile -@@ -627,6 +627,9 @@ endif - NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) - CHECKFLAGS += $(NOSTDINC_FLAGS) - -+# improve gcc optimization -+CFLAGS += $(call cc-option,-funit-at-a-time,) -+ - # warn about C99 declaration after statement - KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) - diff --git a/target/linux/generic/patches-3.8/201-extra_optimization.patch b/target/linux/generic/patches-3.8/201-extra_optimization.patch index d94d2cf3a855..119655dfd32b 100644 --- a/target/linux/generic/patches-3.8/201-extra_optimization.patch +++ b/target/linux/generic/patches-3.8/201-extra_optimization.patch @@ -12,13 +12,3 @@ endif include $(srctree)/arch/$(SRCARCH)/Makefile -@@ -645,6 +645,9 @@ endif - NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) - CHECKFLAGS += $(NOSTDINC_FLAGS) - -+# improve gcc optimization -+CFLAGS += $(call cc-option,-funit-at-a-time,) -+ - # warn about C99 declaration after statement - KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) - diff --git a/target/linux/generic/patches-3.9/201-extra_optimization.patch b/target/linux/generic/patches-3.9/201-extra_optimization.patch index b7546d757786..bd8cc1226047 100644 --- a/target/linux/generic/patches-3.9/201-extra_optimization.patch +++ b/target/linux/generic/patches-3.9/201-extra_optimization.patch @@ -12,13 +12,3 @@ endif include $(srctree)/arch/$(SRCARCH)/Makefile -@@ -647,6 +647,9 @@ endif - NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) - CHECKFLAGS += $(NOSTDINC_FLAGS) - -+# improve gcc optimization -+CFLAGS += $(call cc-option,-funit-at-a-time,) -+ - # warn about C99 declaration after statement - KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) - -- 2.30.2