kernel: stop patching -funit-at-a-time into CFLAGS, it has no effect on recent compilers
authorFelix Fietkau <nbd@openwrt.org>
Mon, 29 Jul 2013 09:38:21 +0000 (09:38 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 29 Jul 2013 09:38:21 +0000 (09:38 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37598

target/linux/generic/patches-3.10/201-extra_optimization.patch
target/linux/generic/patches-3.3/201-extra_optimization.patch
target/linux/generic/patches-3.6/201-extra_optimization.patch
target/linux/generic/patches-3.8/201-extra_optimization.patch
target/linux/generic/patches-3.9/201-extra_optimization.patch

index 051ede1c6bb50bc4180ec2491cf21c336c737c76..6af3d01ba225a7c4689852157e5d9a316fb9793d 100644 (file)
  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,)
index 6fe8b0938d6051f11b005eedc80ee93391ff0d6e..e724891e4f5dacfe176e2f7227df48015ffb0627 100644 (file)
  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,)
index ac26108459eec8f32e59a3206bbe8c5e5654e094..f255a01c1ad9b31fdc57599751865c9f8d01fe53 100644 (file)
  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,)
index d94d2cf3a8557121b005484ab3d1fa592bcf4ab6..119655dfd32b5f36cb2ab2e910d6c487b828f185 100644 (file)
  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,)
index b7546d757786953d4c2f4de9614bcb400f9d857d..bd8cc1226047ed9c68d47ac851809cc2ed7b30da 100644 (file)
  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,)