source: trunk/target/linux/generic/patches-3.3/201-extra_optimization.patch @ 29986

Last change on this file since 29986 was 29986, checked in by jogo, 5 years ago

kernel: add preliminary support for linux 3.3

Based on 3.3-rc2

File size: 675 bytes
  • Makefile

    a b endif # $(dot-config) 
    559559all: vmlinux 
    560560 
    561561ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE 
    562 KBUILD_CFLAGS   += -Os 
     562KBUILD_CFLAGS   += -Os -fno-caller-saves 
    563563else 
    564 KBUILD_CFLAGS   += -O2 
     564KBUILD_CFLAGS   += -O2 -fno-reorder-blocks -fno-tree-ch -fno-caller-saves 
    565565endif 
    566566 
    567567include $(srctree)/arch/$(SRCARCH)/Makefile 
    endif 
    620620NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) 
    621621CHECKFLAGS     += $(NOSTDINC_FLAGS) 
    622622 
     623# improve gcc optimization 
     624CFLAGS += $(call cc-option,-funit-at-a-time,) 
     625 
    623626# warn about C99 declaration after statement 
    624627KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) 
    625628 
Note: See TracBrowser for help on using the repository browser.