mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
Merge the clang support from i386. Don't move to clang yet.
This commit is contained in:
parent
1b174fa1eb
commit
522d68a17f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268474
@ -26,10 +26,7 @@ BOOT2_UFS?= UFS1_AND_UFS2
|
||||
#BOOT2_UFS?= UFS1_ONLY
|
||||
|
||||
CFLAGS= -Os \
|
||||
-fno-guess-branch-probability \
|
||||
-fomit-frame-pointer \
|
||||
-fno-unit-at-a-time \
|
||||
-mno-align-long-strings \
|
||||
-mrtd \
|
||||
-mregparm=3 \
|
||||
-D${BOOT2_UFS} \
|
||||
@ -46,7 +43,10 @@ CFLAGS= -Os \
|
||||
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \
|
||||
-Winline
|
||||
|
||||
CFLAGS.gcc+= --param max-inline-insns-single=100
|
||||
CFLAGS.gcc+= -fno-guess-branch-probability \
|
||||
-fno-unit-at-a-time \
|
||||
-mno-align-long-strings \
|
||||
--param max-inline-insns-single=100
|
||||
|
||||
# Set machine type to PC98_SYSTEM_PARAMETER
|
||||
#CFLAGS+= -DSET_MACHINE_TYPE
|
||||
@ -54,6 +54,8 @@ CFLAGS.gcc+= --param max-inline-insns-single=100
|
||||
# Initialize the bi_bios_geom using the BIOS geometry
|
||||
#CFLAGS+= -DGET_BIOSGEOM
|
||||
|
||||
CFLAGS.clang+=${CLANG_OPT_SMALL}
|
||||
|
||||
LD_FLAGS=-static -N --gc-sections
|
||||
|
||||
# Pick up ../Makefile.inc early.
|
||||
@ -112,3 +114,6 @@ boot2.h: boot1.out
|
||||
REL1=`printf "%d" ${REL1}` > ${.TARGET}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
# XXX: clang integrated-as doesn't grok .codeNN directives yet
|
||||
CFLAGS+= ${CLANG_NO_IAS}
|
||||
|
Loading…
Reference in New Issue
Block a user