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 50a29d5ca435f4b9aced405d1e6cb39540af0370..6938bef84ef1680199b0fcc86df750ff930cc23e 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,)