diff options
author | obrien <obrien@FreeBSD.org> | 2004-03-18 18:05:08 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2004-03-18 18:05:08 +0000 |
commit | 2094be29646dbec7fb96a01cdbdd4d2fdc6b74dd (patch) | |
tree | 5ac668f35230b1e64522a3887d308d9f595ad132 /sys | |
parent | c6ca50a4e34a6ae8e7b9658ba92e3e1128a27e7f (diff) | |
download | FreeBSD-src-2094be29646dbec7fb96a01cdbdd4d2fdc6b74dd.zip FreeBSD-src-2094be29646dbec7fb96a01cdbdd4d2fdc6b74dd.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/conf/kern.pre.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index 89dc5f6..b672482 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -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]} != "" |