Skip to content

Commit

Permalink
kernel: stop patching -funit-at-a-time into CFLAGS, it has no effect …
Browse files Browse the repository at this point in the history
…on recent compilers

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 37598
  • Loading branch information
Felix Fietkau committed Jul 29, 2013
1 parent c67a127 commit cc26f76
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 50 deletions.
10 changes: 0 additions & 10 deletions target/linux/generic/patches-3.10/201-extra_optimization.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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,)

10 changes: 0 additions & 10 deletions target/linux/generic/patches-3.3/201-extra_optimization.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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,)

10 changes: 0 additions & 10 deletions target/linux/generic/patches-3.6/201-extra_optimization.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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,)

10 changes: 0 additions & 10 deletions target/linux/generic/patches-3.8/201-extra_optimization.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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,)

10 changes: 0 additions & 10 deletions target/linux/generic/patches-3.9/201-extra_optimization.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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,)

0 comments on commit cc26f76

Please sign in to comment.