Skip to content

Commit a60b0a7

Browse files
committed
readding flags Quarx2k#2
Change-Id: If3f721e2174dda8c158d4c5ace601d6ebb8fed1b
1 parent 29a62c5 commit a60b0a7

File tree

1 file changed

+45
-2
lines changed

1 file changed

+45
-2
lines changed

Makefile

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,9 +570,52 @@ endif # $(dot-config)
570570
all: vmlinux
571571

572572
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
573-
KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
573+
KBUILD_CFLAGS += -Os -mthumb
574+
LDFLAGS += -Os --as-needed --sort-common
575+
574576
else
575-
KBUILD_CFLAGS += -O3 -fno-tree-vectorize
577+
578+
LDFLAGS += -Ofast --as-needed --sort-common
579+
KBUILD_CFLAGS += -Ofast -marm \
580+
-ftree-vectorize \
581+
-funsafe-loop-optimizations \
582+
-fno-keep-static-consts \
583+
-fmerge-all-constants \
584+
-fmodulo-sched \
585+
-fmodulo-sched-allow-regmoves \
586+
-fgcse-sm \
587+
-fgcse-las \
588+
-fgcse-after-reload \
589+
-fira-region=all \
590+
-fsched-pressure \
591+
-fsched-spec-load \
592+
-fsched-spec-load-dangerous \
593+
-fselective-scheduling \
594+
-fsel-sched-pipelining \
595+
-fsel-sched-pipelining-outer-loops \
596+
-fipa-pta \
597+
-fno-check-data-deps \
598+
-ftree-loop-if-convert \
599+
-ftree-loop-distribution \
600+
-ftree-loop-im \
601+
-ftree-loop-ivcanon \
602+
-fivopts \
603+
-ftree-coalesce-inlined-vars \
604+
-ftracer \
605+
-fprefetch-loop-arrays \
606+
-fweb \
607+
-fuse-linker-plugin \
608+
-ffat-lto-objects \
609+
-fprofile-correction \
610+
-frename-registers \
611+
-fsection-anchors \
612+
-funswitch-loops \
613+
-DNDEBUG \
614+
-frerun-cse-after-loop \
615+
-fpeel-loops \
616+
-fbtr-bb-exclusive \
617+
-fcx-fortran-rules
618+
576619
endif
577620

578621
include $(srctree)/arch/$(SRCARCH)/Makefile

0 commit comments

Comments
 (0)