summaryrefslogtreecommitdiffstats
path: root/sys/boot/ficl
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-08-22 06:24:59 +0000
committermarcel <marcel@FreeBSD.org>2004-08-22 06:24:59 +0000
commitcc3398a62e169753934c155b12fb099db525d064 (patch)
tree89cc0f3630e04d5976ccc8d2da0e4edd3866f4df /sys/boot/ficl
parent9ffe386e731bfea1183e50c9e300992a5ce61dd2 (diff)
downloadFreeBSD-src-cc3398a62e169753934c155b12fb099db525d064.zip
FreeBSD-src-cc3398a62e169753934c155b12fb099db525d064.tar.gz
Part 2 of fixing the boot code: gcc 3.4 fixes.
The whole problem seems to be size. Which is odd, because it is said that size doesn't matter. Anyway... Add -Os to strategic places in the makefile to have the final loader be as mall as possible. This seems to be enough to make it work. For now... I think something is more fundamentally wrong; or something more fundamental is wrong. Potato, potaato.
Diffstat (limited to 'sys/boot/ficl')
-rw-r--r--sys/boot/ficl/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile
index 6f913b9..c455e7a 100644
--- a/sys/boot/ficl/Makefile
+++ b/sys/boot/ficl/Makefile
@@ -8,7 +8,7 @@ SRCS= ${BASE_SRCS} sysdep.c softcore.c
CLEANFILES= softcore.c testmain testmain.o
CFLAGS+= -ffreestanding
.if ${MACHINE_ARCH} == "alpha"
-CFLAGS+= -mno-fp-regs
+CFLAGS+= -mno-fp-regs -Os
.endif
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
CFLAGS+= -mpreferred-stack-boundary=2
OpenPOWER on IntegriCloud