Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Compiler optimizations.
  • Loading branch information
tanimn committed Mar 31, 2011
1 parent 31ed391 commit 4ad4a4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Kernel/Makefile
Expand Up @@ -222,8 +222,8 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \

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

# Decide whether to build built-in, modular, or both.
# Normally, just do built-in.
Expand Down Expand Up @@ -524,7 +524,7 @@ all: vmlinux
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os
else
KBUILD_CFLAGS += -O2
KBUILD_CFLAGS += -O3
endif

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

0 comments on commit 4ad4a4d

Please sign in to comment.