From owner-svn-src-projects@FreeBSD.ORG Wed Jan 28 19:47:02 2015 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 560E554E; Wed, 28 Jan 2015 19:47:02 +0000 (UTC) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) by mx1.freebsd.org (Postfix) with ESMTP id 2A53A26E; Wed, 28 Jan 2015 19:47:02 +0000 (UTC) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id A568F5A9F27; Wed, 28 Jan 2015 19:47:00 +0000 (UTC) Date: Wed, 28 Jan 2015 19:47:00 +0000 From: Brooks Davis To: Tijl Coosemans Subject: Re: svn commit: r277803 - projects/clang360-import/lib/clang/include Message-ID: <20150128194700.GA6522@spindle.one-eyed-alien.net> References: <201501271925.t0RJPem3010417@svn.freebsd.org> <20150127191134.4fe3a17f@kan> <20150128091457.1b0ea3a7@kan> <2DA71591-EE38-42F9-983F-8E711CA36A75@FreeBSD.org> <20150128133946.7243a0fc@kan> <20150128202422.52016f68@kalimero.tijl.coosemans.org> <0129A21C-D178-49D9-9729-A94D30AACE48@FreeBSD.org> <20150128203407.23eadf62@kalimero.tijl.coosemans.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: <20150128203407.23eadf62@kalimero.tijl.coosemans.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Benjamin Kaduk , svn-src-projects@freebsd.org, "src-committers@freebsd.org" , Dimitry Andric , Alexander Kabaev X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2015 19:47:02 -0000 --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 28, 2015 at 08:34:07PM +0100, Tijl Coosemans wrote: > On Wed, 28 Jan 2015 20:28:06 +0100 Dimitry Andric wrote: > > On 28 Jan 2015, at 20:24, Tijl Coosemans wrote: > >> That said, this commit breaks compiling with "cc -ffreestanding > >> -nostdinc -I`cc -print-file-name=3Dinclude`" because clang versions of > >> std*.h headers aren't installed on FreeBSD which is yet another > >> thing that FreeBSD does differently. Maybe now is a good time to fix > >> that as well? > >=20 > > We never installed any internal clang headers that were named the same > > as our own headers, because they used to cause conflicts. I will have > > a look if those conflicts have now been resolved, then we could install > > them for use in freestanding environments. >=20 > You may need to add something like this to some headers: >=20 > #if __STDC_HOSTED__ && __has_include_next() > #include_next > #else > .... > #endif >=20 > The stdint.h header already seems to have that. The std*.h headers in clang clash with ours currently. The errors about different redefintions will need to be resolved before they can be included in the base. Doing that would be really useful as it would simplify the clang ports and make life easier for those of us who build their own clang and use it from the build directory. Currently, the build process for all the SRI/Cambridge variants of clang ends up with some variant of: ninja && rm lib/clang/3.6.0/include/std*.h -- Brooks --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlTJPLMACgkQXY6L6fI4GtSUOwCfe4ThrGPqxxF3yWIdpJnToxb5 u1kAn3dS4qqhLPmVooidhlveNX6nI8Wo =nYB8 -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV--