diff options
author | Warner Losh <imp@FreeBSD.org> | 2018-09-05 20:02:23 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2018-09-05 20:02:23 +0000 |
commit | 0125fb63521b58780c41d9ded78ce175c8c5a7e0 (patch) | |
tree | 5bb7d6785f2524df793250b81e4a983524d4ec74 /stand/defs.mk | |
parent | 4269bba2eb79d2011a11572e9a0f681b8e9082ff (diff) | |
download | src-0125fb63521b58780c41d9ded78ce175c8c5a7e0.tar.gz src-0125fb63521b58780c41d9ded78ce175c8c5a7e0.zip |
Be a little conservative about when to force size optimizations.
Reports have come in that there's issue with powerpc and sparc64 since
we've switched to using -Oz / -Os. We don't strictly need them for
!x86, so be conservative about when we enable them.
Approved by: re@ (gjb)
Differential Revision: https://reviews.freebsd.org/D17016
Notes
Notes:
svn path=/head/; revision=338474
Diffstat (limited to 'stand/defs.mk')
-rw-r--r-- | stand/defs.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stand/defs.mk b/stand/defs.mk index c578f001f0a6..7ee0922858b9 100644 --- a/stand/defs.mk +++ b/stand/defs.mk @@ -53,12 +53,14 @@ CFLAGS+= -I${SASRC} -D_STANDALONE CFLAGS+= -I${SYSDIR} # Spike the floating point interfaces CFLAGS+= -Ddouble=jagged-little-pill -Dfloat=floaty-mcfloatface +.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" # Slim down the image. This saves about 15% in size with clang 6 on x86 # Our most constrained /boot/loader env is BIOS booting on x86, where # our text + data + BTX have to fit into 640k below the ISA hole. # Experience has shown that problems arise between ~520k to ~530k. CFLAGS.clang+= -Oz CFLAGS.gcc+= -Os +.endif # GELI Support, with backward compat hooks (mostly) .if defined(LOADER_NO_GELI_SUPPORT) |