Similar to r274977, use the correct combination of flags to get the pc98

boot2 below the limit.
This commit is contained in:
Dimitry Andric 2014-11-25 21:08:31 +00:00
parent db41cedf01
commit 71369fed66
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/clang350-import/; revision=275075

View File

@ -19,8 +19,7 @@ BOOT2_UFS?= UFS1_AND_UFS2
#BOOT2_UFS?= UFS2_ONLY #BOOT2_UFS?= UFS2_ONLY
#BOOT2_UFS?= UFS1_ONLY #BOOT2_UFS?= UFS1_ONLY
CFLAGS= -Os \ CFLAGS= -fomit-frame-pointer \
-fomit-frame-pointer \
-mrtd \ -mrtd \
-mregparm=3 \ -mregparm=3 \
-D${BOOT2_UFS} \ -D${BOOT2_UFS} \
@ -37,7 +36,8 @@ CFLAGS= -Os \
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \ -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \
-Winline -Winline
CFLAGS.gcc+= -fno-guess-branch-probability \ CFLAGS.gcc+= -Os \
-fno-guess-branch-probability \
-fno-unit-at-a-time \ -fno-unit-at-a-time \
-mno-align-long-strings \ -mno-align-long-strings \
--param max-inline-insns-single=100 --param max-inline-insns-single=100
@ -48,7 +48,7 @@ CFLAGS.gcc+= -fno-guess-branch-probability \
# Initialize the bi_bios_geom using the BIOS geometry # Initialize the bi_bios_geom using the BIOS geometry
#CFLAGS+= -DGET_BIOSGEOM #CFLAGS+= -DGET_BIOSGEOM
CFLAGS.clang+=${CLANG_OPT_SMALL} CFLAGS.clang+= -Oz ${CLANG_OPT_SMALL}
LD_FLAGS=-static -N --gc-sections LD_FLAGS=-static -N --gc-sections