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:
parent
3cec53b8a7
commit
7798640d82
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user