From 7798640d82ceaf7b138efc2373d153b57481a714 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 5 May 2011 18:47:24 +0000 Subject: [PATCH] Fine-tune llvm optimization for sys/boot/i386/boot2, which shaves off some more bytes from the final boot2 image. Submitted by: rdivacky --- sys/boot/i386/boot2/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/boot/i386/boot2/Makefile b/sys/boot/i386/boot2/Makefile index 6dc27d2dd41..9568c1c1099 100644 --- a/sys/boot/i386/boot2/Makefile +++ b/sys/boot/i386/boot2/Makefile @@ -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