projects
/
seabios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7453453
)
Add compile options to reduce stack usage.
author
Kevin O'Connor
<kevin@koconnor.net>
Tue, 13 May 2008 03:44:57 +0000
(23:44 -0400)
committer
Kevin O'Connor
<kevin@koconnor.net>
Tue, 13 May 2008 03:44:57 +0000
(23:44 -0400)
Add -fno-defer-pop
Add --param large-stack-frame=8 to prevent stack explosion on gcc 4.3.
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 151757ae21cb866f92365910ab1d8bf3f2a6fd50..c465120b23225f411c7cf5aaa67e7cdf7edaaaa3 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-26,7
+26,8
@@
COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
CFLAGS = $(COMMONCFLAGS) -g
-CFLAGS16INC = $(COMMONCFLAGS) -DMODE16 -fno-jump-tables
+CFLAGS16INC = $(COMMONCFLAGS) -DMODE16 -fno-jump-tables -fno-defer-pop \
+ $(call cc-option,$(CC),--param large-stack-frame=8,)
CFLAGS16 = $(CFLAGS16INC) -g
TABLETMP=$(addprefix $(OUT), $(patsubst %.c,%.16.s,$(TABLESRC)))