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:
parent
0c29f7d300
commit
8bbf57a9c8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127180
@ -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]} != ""
|
||||
|
Loading…
Reference in New Issue
Block a user