summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/gptboot
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-11-15 04:23:40 +0000
committerobrien <obrien@FreeBSD.org>1999-11-15 04:23:40 +0000
commit48ebb77e0e28d38b4456f13f7f7682f9d6100d1a (patch)
tree26d9af6be968b89a36c2bab7f9a520e12ef3c7b0 /sys/boot/i386/gptboot
parentf62e7fc20cc486bc0308c35b4e7e33eaa0d41e43 (diff)
downloadFreeBSD-src-48ebb77e0e28d38b4456f13f7f7682f9d6100d1a.zip
FreeBSD-src-48ebb77e0e28d38b4456f13f7f7682f9d6100d1a.tar.gz
Add -fdata-sections, which is a new GCC 2.95 optimization. Remove
-fschedule-insns as it wasn't such a big win with 2.95 after all. Add the *BIG* win "-mpreferred-stack-boundary=2" optimiztion submitted by Dima. GCC 2.95 ensures the stack frame is always properly [opitimally] aligned by surrounding every function call by code simular to "addl $-12, %esp" / "addl $12, %esp". Here we need the reduction in space, with speed not an issue.
Diffstat (limited to 'sys/boot/i386/gptboot')
-rw-r--r--sys/boot/i386/gptboot/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/i386/gptboot/Makefile b/sys/boot/i386/gptboot/Makefile
index 59ae6a7..b27780b 100644
--- a/sys/boot/i386/gptboot/Makefile
+++ b/sys/boot/i386/gptboot/Makefile
@@ -28,8 +28,9 @@ ORG1= 0x7c00
ORG2= 0x1000
CFLAGS= -elf -I${.CURDIR}/../btx/lib -I. \
- -Os -fno-builtin -fforce-addr -fschedule-insns \
+ -Os -fno-builtin -fforce-addr -fdata-sections \
-malign-functions=0 -malign-jumps=0 -malign-loops=0 -mrtd \
+ -mpreferred-stack-boundary=2 \
-Wall -Waggregate-return -Wbad-function-cast -Wcast-align \
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings
OpenPOWER on IntegriCloud