Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 4804100

Browse files
committed
XANMOD: Makefile: Turn off loop vectorization for GCC -O3 optimization level
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
1 parent c14234e commit 4804100

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE
757757
KBUILD_CFLAGS += -O2
758758
else ifdef CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3
759759
KBUILD_CFLAGS += -O3
760+
KBUILD_CFLAGS += $(call cc-option, -fno-tree-loop-vectorize)
760761
else ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
761762
KBUILD_CFLAGS += -Os
762763
endif

0 commit comments

Comments
 (0)