Skip to content

Commit

Permalink
readding flags Quarx2k#2
Browse files Browse the repository at this point in the history
Change-Id: If3f721e2174dda8c158d4c5ace601d6ebb8fed1b
  • Loading branch information
Highwind1991 committed Jun 27, 2015
1 parent 29a62c5 commit a60b0a7
Showing 1 changed file with 45 additions and 2 deletions.
47 changes: 45 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a60b0a7

Please sign in to comment.