Skip to content

Commit

Permalink
Revert "Makefile: O3 optimizations"
Browse files Browse the repository at this point in the history
This reverts commit cfed273.
  • Loading branch information
FraTeG committed Sep 15, 2023
1 parent 57fb475 commit 3099041
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \

HOSTCC = gcc
HOSTCXX = g++
HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O3 -fomit-frame-pointer
HOSTCXXFLAGS = -O3
HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer
HOSTCXXFLAGS = -O2

# Decide whether to build built-in, modular, or both.
# Normally, just do built-in.
Expand Down Expand Up @@ -635,7 +635,7 @@ all: vmlinux
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,)
else
KBUILD_CFLAGS += -O3 -g
KBUILD_CFLAGS += -O2 -g
endif

include $(srctree)/arch/$(SRCARCH)/Makefile
Expand Down

0 comments on commit 3099041

Please sign in to comment.