From owner-svn-src-projects@FreeBSD.ORG Wed Jan 28 19:34:11 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 5CAD8F68; Wed, 28 Jan 2015 19:34:11 +0000 (UTC) Received: from mailrelay106.isp.belgacom.be (mailrelay106.isp.belgacom.be [195.238.20.133]) by mx1.freebsd.org (Postfix) with ESMTP id 996DBFD; Wed, 28 Jan 2015 19:34:10 +0000 (UTC) X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=Xz9Uco7AEzg9ElRFdtKQLJViOsXK4SGQVO9ewqrYxis= c=1 sm=2 a=kj9zAlcOel0A:10 a=6I5d2MoRAAAA:8 a=ShD5zq-L9PcgKQ9U2lUA:9 a=CjuIK1q_8ugA:10 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CzBgCSOMlU/xOHsFtagwaBIAvKSgKBG0QBAQEBAX2EDQEFOhwjEAsOCgklDyoeBhOIMAHWWgEBAQEBAQEDAQEBAQEdj3gHhCkBBJgVkkciggIcgVE9MYJCAQEB Received: from 19.135-176-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.176.135.19]) by relay.skynet.be with ESMTP; 28 Jan 2015 20:34:09 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.9/8.14.9) with ESMTP id t0SJY7KT033437; Wed, 28 Jan 2015 20:34:08 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Wed, 28 Jan 2015 20:34:07 +0100 From: Tijl Coosemans To: Dimitry Andric Subject: Re: svn commit: r277803 - projects/clang360-import/lib/clang/include Message-ID: <20150128203407.23eadf62@kalimero.tijl.coosemans.org> In-Reply-To: <0129A21C-D178-49D9-9729-A94D30AACE48@FreeBSD.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Benjamin Kaduk , svn-src-projects@freebsd.org, "src-committers@freebsd.org" , 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:34:11 -0000 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=include`" 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? > > 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. You may need to add something like this to some headers: #if __STDC_HOSTED__ && __has_include_next() #include_next #else .... #endif The stdint.h header already seems to have that.