]> xenbits.xensource.com Git - seabios.git/commitdiff
Tune gcc stack growth parameter.
authorKevin O'Connor <kevin@koconnor.net>
Thu, 1 Jan 2009 22:54:16 +0000 (17:54 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 1 Jan 2009 22:54:16 +0000 (17:54 -0500)
Use 4 instead of 8 -- latest gcc isn't doing tail-recursion
    optimizations on disk functions due to stack growth.

Makefile

index 3a24433fe1ff23cf7d1fbdab9a3f6fc927a86ad9..220eafa1442af144aa70756919c106de1a2156e5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
 
 override CFLAGS = $(COMMONCFLAGS) -g -DMODE16=0
 CFLAGS16INC = $(COMMONCFLAGS) -DMODE16=1 -fno-jump-tables -fno-defer-pop \
-              $(call cc-option,$(CC),--param large-stack-frame=8,)
+              $(call cc-option,$(CC),--param large-stack-frame=4,)
 CFLAGS16 = $(CFLAGS16INC) -g
 
 TABLETMP=$(addprefix $(OUT), $(patsubst %.c,%.16.s,$(TABLESRC)))