svn commit: r229280 - stable/9/sys/conf
Dimitry Andric
dim at FreeBSD.org
Mon Jan 2 13:21:35 UTC 2012
Author: dim
Date: Mon Jan 2 13:21:34 2012
New Revision: 229280
URL: http://svn.freebsd.org/changeset/base/229280
Log:
MFC r228868:
When building the kernel for amd64 with clang, don't attempt to use the
-frename-registers option, as it is not supported. No change for builds
with gcc.
Modified:
stable/9/sys/conf/kern.pre.mk
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/conf/ (props changed)
Modified: stable/9/sys/conf/kern.pre.mk
==============================================================================
--- stable/9/sys/conf/kern.pre.mk Mon Jan 2 13:20:01 2012 (r229279)
+++ stable/9/sys/conf/kern.pre.mk Mon Jan 2 13:21:34 2012 (r229280)
@@ -34,8 +34,12 @@ _MINUS_O= -O2
.endif
.endif
.if ${MACHINE_CPUARCH} == "amd64"
+.if ${CC:T:Mclang} != "clang"
COPTFLAGS?=-O2 -frename-registers -pipe
.else
+COPTFLAGS?=-O2 -pipe
+.endif
+.else
COPTFLAGS?=${_MINUS_O} -pipe
.endif
.if !empty(COPTFLAGS:M-O[23s]) && empty(COPTFLAGS:M-fno-strict-aliasing)
More information about the svn-src-stable-9
mailing list