Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jan 2012 13:21:35 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229280 - stable/9/sys/conf
Message-ID:  <201201021321.q02DLZuo068728@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



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