From a60b0a7af03440597b0e97410f30b6591251af0e Mon Sep 17 00:00:00 2001 From: Kain Highwind Date: Sat, 27 Jun 2015 18:43:47 +0200 Subject: [PATCH] readding flags #2 Change-Id: If3f721e2174dda8c158d4c5ace601d6ebb8fed1b --- Makefile | 47 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 065f4cd2a079..78cb643172c5 100644 --- a/Makefile +++ b/Makefile @@ -570,9 +570,52 @@ endif # $(dot-config) all: vmlinux ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE -KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,) +KBUILD_CFLAGS += -Os -mthumb +LDFLAGS += -Os --as-needed --sort-common + else -KBUILD_CFLAGS += -O3 -fno-tree-vectorize + +LDFLAGS += -Ofast --as-needed --sort-common +KBUILD_CFLAGS += -Ofast -marm \ + -ftree-vectorize \ + -funsafe-loop-optimizations \ + -fno-keep-static-consts \ + -fmerge-all-constants \ + -fmodulo-sched \ + -fmodulo-sched-allow-regmoves \ + -fgcse-sm \ + -fgcse-las \ + -fgcse-after-reload \ + -fira-region=all \ + -fsched-pressure \ + -fsched-spec-load \ + -fsched-spec-load-dangerous \ + -fselective-scheduling \ + -fsel-sched-pipelining \ + -fsel-sched-pipelining-outer-loops \ + -fipa-pta \ + -fno-check-data-deps \ + -ftree-loop-if-convert \ + -ftree-loop-distribution \ + -ftree-loop-im \ + -ftree-loop-ivcanon \ + -fivopts \ + -ftree-coalesce-inlined-vars \ + -ftracer \ + -fprefetch-loop-arrays \ + -fweb \ + -fuse-linker-plugin \ + -ffat-lto-objects \ + -fprofile-correction \ + -frename-registers \ + -fsection-anchors \ + -funswitch-loops \ + -DNDEBUG \ + -frerun-cse-after-loop \ + -fpeel-loops \ + -fbtr-bb-exclusive \ + -fcx-fortran-rules + endif include $(srctree)/arch/$(SRCARCH)/Makefile