1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

For AMD64, lets officially support a -O2 kernel build!

I've added -fno-strict-aliasing for now so we can ease into this.
I wanted to shoot for -O3, but the inlining caused problems due to GCC's
size heuristics; so also add -frename-registers, which is one of the things
-O3 would have given us.
This commit is contained in:
David E. O'Brien 2004-03-18 18:05:08 +00:00
parent 0c29f7d300
commit 8bbf57a9c8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127180

View File

@ -18,6 +18,8 @@ SIZE?= size
.if ${CC} == "icc"
COPTFLAGS?=-O
.elif ${MACHINE_ARCH} == "amd64"
COPTFLAGS?=-O2 -fno-strict-aliasing -frename-registers -pipe
.else
COPTFLAGS?=-O -pipe
. if ${COPTFLAGS:M-O[23s]} != ""