Fine-tune llvm optimization for sys/boot/i386/boot2, which shaves off

some more bytes from the final boot2 image.

Submitted by:	rdivacky
This commit is contained in:
Dimitry Andric 2011-05-05 18:47:24 +00:00
parent 3cec53b8a7
commit 7798640d82

View File

@ -43,7 +43,8 @@ CFLAGS= -Os \
-Winline --param max-inline-insns-single=100
.if ${CC:T:Mclang} == "clang"
CFLAGS+= -mllvm -stack-alignment=8 -mllvm -inline-threshold=3
CFLAGS+= -mllvm -stack-alignment=8 -mllvm -inline-threshold=3 \
-mllvm -enable-load-pre=false
# XXX: clang integrated-as doesn't grok .codeNN directives yet
CFLAGS+= ${.IMPSRC:T:Mboot1.S:C/^.+$/-no-integrated-as/}
.endif