Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Dec 2011 19:01:31 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228868 - head/sys/conf
Message-ID:  <201112241901.pBOJ1VFN025365@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec 24 19:01:31 2011
New Revision: 228868
URL: http://svn.freebsd.org/changeset/base/228868

Log:
  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.
  
  MFC after:	1 week

Modified:
  head/sys/conf/kern.pre.mk

Modified: head/sys/conf/kern.pre.mk
==============================================================================
--- head/sys/conf/kern.pre.mk	Sat Dec 24 18:57:42 2011	(r228867)
+++ head/sys/conf/kern.pre.mk	Sat Dec 24 19:01:31 2011	(r228868)
@@ -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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112241901.pBOJ1VFN025365>