diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-03-20 20:21:13 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-03-20 20:42:12 -0400 |
commit | d705e5accd1de84c46c60d1f872e12a5374e8082 (patch) | |
tree | 9d10721c33765cd362b5314544215c6bfdf620c5 /Makefile | |
parent | bca0736f5a6df16d0d98a877d695d406a9be88b7 (diff) | |
download | seabios-d705e5accd1de84c46c60d1f872e12a5374e8082.tar.gz |
Disable inlining on old compilers.
If the compiler can't restrict inlining by stack usage, then disable
inlining in 16bit mode. Otherwise, old compilers produce code that
uses too much stack space.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -42,7 +42,7 @@ CFLAGSSEG = $(COMMONCFLAGS) -DMODESEGMENT=1 -fno-defer-pop \ $(call cc-option,$(CC),-fno-tree-switch-conversion,) CFLAGS32SEG = $(CFLAGSSEG) -DMODE16=0 -g CFLAGS16INC = $(CFLAGSSEG) -DMODE16=1 \ - $(call cc-option,$(CC),--param large-stack-frame=4,) + $(call cc-option,$(CC),--param large-stack-frame=4,-fno-inline) CFLAGS16 = $(CFLAGS16INC) -g all: $(OUT) $(OUT)bios.bin |