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

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]} != ""