Add build option -fomit-frame-pointer.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 9 Mar 2008 16:18:22 +0000 (12:18 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 9 Mar 2008 16:18:22 +0000 (12:18 -0400)
It seems to improve code generation.

Makefile

index 50a29d5..6938bef 100644 (file)
--- 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,)