aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-03-09 12:18:22 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-03-09 12:18:22 -0400
commit5a869f02df8f150e6b0525b728fba25d913f96b9 (patch)
tree60a669d0429c7b2981c3d71c10d408a70c15c588
parent16375ab5fb4fb0eae8e71dd14207080235e4c892 (diff)
downloadseabios-5a869f02df8f150e6b0525b728fba25d913f96b9.tar.gz
Add build option -fomit-frame-pointer.
It seems to improve code generation.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 50a29d5c..6938bef8 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ cc-option = $(shell if test -z "`$(1) $(2) -S -o /dev/null -xc \
# Default compiler flags
COMMONCFLAGS = -Wall -Os -MD -m32 -march=i386 -mregparm=2 \
- -ffreestanding -fwhole-program
+ -ffreestanding -fwhole-program -fomit-frame-pointer
COMMONCFLAGS += $(call cc-option,$(CC),-nopie,)
COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)