summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/gptboot
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-11-13 23:08:46 +0000
committerobrien <obrien@FreeBSD.org>1999-11-13 23:08:46 +0000
commitaaa5ed29fd0a43140e81ece9a48f3435a876fe5b (patch)
tree9388528b6c15b662a1b82b861a9e1dd3668ce080 /sys/boot/i386/gptboot
parent846b75da6d4a3032f8b4c1972716686fb806d9d3 (diff)
downloadFreeBSD-src-aaa5ed29fd0a43140e81ece9a48f3435a876fe5b.zip
FreeBSD-src-aaa5ed29fd0a43140e81ece9a48f3435a876fe5b.tar.gz
Turn on the -fforce-addr and -fschedule-insns optimizations. Adding
either one gives us an additional 32 bytes of additional space available when using EGCS 1.1.2. With GCC 2.95.2 -fforce-addr gives us 12 more bytes, and adding -fschedule-insns gives us an additional 4 bytes.
Diffstat (limited to 'sys/boot/i386/gptboot')
-rw-r--r--sys/boot/i386/gptboot/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/boot/i386/gptboot/Makefile b/sys/boot/i386/gptboot/Makefile
index 578b452..59ae6a7 100644
--- a/sys/boot/i386/gptboot/Makefile
+++ b/sys/boot/i386/gptboot/Makefile
@@ -27,8 +27,9 @@ BTX= ${.CURDIR}/../btx
ORG1= 0x7c00
ORG2= 0x1000
-CFLAGS= -elf -I${.CURDIR}/../btx/lib -I. -fno-builtin \
- -Os -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mrtd \
+CFLAGS= -elf -I${.CURDIR}/../btx/lib -I. \
+ -Os -fno-builtin -fforce-addr -fschedule-insns \
+ -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mrtd \
-Wall -Waggregate-return -Wbad-function-cast -Wcast-align \
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings
OpenPOWER on IntegriCloud