Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2012 13:52:33 -0600
From:      Brooks Davis <brooks@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   HEADS UP: Clang now the default on x86
Message-ID:  <20121105195233.GG92218@lor.one-eyed-alien.net>

next in thread | raw e-mail | index | archive | help

--SUk9VBj82R8Xhb8H
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I've made clang the default on x86 systems.  There will probably be a
few bumps as we work out the last kinks including a ABI issue for i386
system libraries, but the transition is expected to be fairly smooth for
most users.

Please report problems on freebsd-current or freebsd-toolchain.

-- Brooks

----- Forwarded message from Brooks Davis <brooks@FreeBSD.org> -----

Date: Mon, 5 Nov 2012 19:08:18 +0000 (UTC)
=46rom: Brooks Davis <brooks@FreeBSD.org>
To: src-committers@FreeBSD.org, svn-src-all@FreeBSD.org,
	svn-src-head@FreeBSD.org
Subject: svn commit: r242624 - in head: . share/mk sys/sys

Author: brooks
Date: Mon Nov  5 19:08:18 2012
New Revision: 242624
URL: http://svnweb.freebsd.org/changeset/base/242624

Log:
  After years of hard work by many FreeBSD and LLVM developers, make
  clang the default compiler on i386 and amd64 systems.
 =20
  Special thanks to:	dim, ed, rdivacky

Modified:
  head/UPDATING
  head/share/mk/bsd.own.mk
  head/sys/sys/param.h

Modified: head/UPDATING
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- head/UPDATING	Mon Nov  5 19:00:25 2012	(r242623)
+++ head/UPDATING	Mon Nov  5 19:08:18 2012	(r242624)
@@ -24,6 +24,13 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 10
 	disable the most expensive debugging functionality run
 	"ln -s 'abort:false,junk:false' /etc/malloc.conf".)
=20
+20121105:
+	On i386 and amd64 systems WITH_CLANG_IS_CC is now the default.
+	This means that the world and kernel will be compiled with clang
+	and that clang will be installed as /usr/bin/cc, /usr/bin/c++,
+	and /usr/bin/cpp.  To disable this behavior and revert to building
+	with gcc, compiler with WITHOUT_CLANG_IS_CC.
+
 20121102:
 	The IPFIREWALL_FORWARD kernel option has been removed. Its
 	functionality now turned on by default.

Modified: head/share/mk/bsd.own.mk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- head/share/mk/bsd.own.mk	Mon Nov  5 19:00:25 2012	(r242623)
+++ head/share/mk/bsd.own.mk	Mon Nov  5 19:08:18 2012	(r242624)
@@ -426,7 +426,6 @@ __DEFAULT_NO_OPTIONS =3D \
     BIND_XML \
     BSDCONFIG \
     CLANG_EXTRAS \
-    CLANG_IS_CC \
     CTF \
     HESIOD \
     ICONV \
@@ -455,6 +454,12 @@ __DEFAULT_YES_OPTIONS+=3DCLANG
 .else
 __DEFAULT_NO_OPTIONS+=3DCLANG
 .endif
+# Clang the default system compiler only on x86.
+.if ${__T} =3D=3D "amd64" || ${__T} =3D=3D "i386"
+__DEFAULT_YES_OPTIONS+=3DCLANG_IS_CC
+.else
+__DEFAULT_NO_OPTIONS+=3DCLANG_IS_CC
+.endif
 # FDT is needed only for arm, mips and powerpc
 .if ${__T:Marm*} || ${__T:Mpowerpc*} || ${__T:Mmips*}
 __DEFAULT_YES_OPTIONS+=3DFDT

Modified: head/sys/sys/param.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- head/sys/sys/param.h	Mon Nov  5 19:00:25 2012	(r242623)
+++ head/sys/sys/param.h	Mon Nov  5 19:08:18 2012	(r242624)
@@ -58,7 +58,7 @@
  *		in the range 5 to 9.
  */
 #undef __FreeBSD_version
-#define __FreeBSD_version 1000023	/* Master, propagated to newvers */
+#define __FreeBSD_version 1000024	/* Master, propagated to newvers */
=20
 /*
  * __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBS=
D,


----- End forwarded message -----

--SUk9VBj82R8Xhb8H
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iD8DBQFQmBkBXY6L6fI4GtQRAvUwAKCp8t0gEnSW7nAmTcfcdVEqJtugsACgmeZi
hf7rOMXprjVc+PfPdAUlz2M=
=GHbF
-----END PGP SIGNATURE-----

--SUk9VBj82R8Xhb8H--



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