From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 27 18:54:22 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E5BDFFF9 for ; Thu, 27 Jun 2013 18:54:22 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from nibbler.fubar.geek.nz (nibbler.fubar.geek.nz [199.48.134.198]) by mx1.freebsd.org (Postfix) with ESMTP id CC9E81943 for ; Thu, 27 Jun 2013 18:54:22 +0000 (UTC) Received: from bender.Home (97e76fc9.skybroadband.com [151.231.111.201]) by nibbler.fubar.geek.nz (Postfix) with ESMTPSA id 817EE5E1D5; Thu, 27 Jun 2013 18:48:42 +0000 (UTC) Date: Thu, 27 Jun 2013 19:48:35 +0100 From: Andrew Turner To: Dimitry Andric Subject: Re: Can't use gcc in a clang built world Message-ID: <20130627194835.4b1a7408@bender.Home> In-Reply-To: <51CC1C9F.7080403@andric.com> References: <51CC1C9F.7080403@andric.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "freebsd-hackers@freebsd.org Hackers" , Kevin Day X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jun 2013 18:54:23 -0000 On Thu, 27 Jun 2013 13:06:07 +0200 Dimitry Andric wrote: > On 2013-06-27 02:02, Kevin Day wrote: > > Are you supposed to be able to use gcc to build userland binaries > > if you built world with clang? > > > > I'm on -CURRENT as of a few days ago (using armv6 but i'm not sure > > if that matters). > > Yes, the arch matters a lot. For arm, adding __clear_cache() to > libgcc was explicitly disabled by Andrew here: > > http://svnweb.freebsd.org/base?view=revision&revision=244382 > > "Don't provide clear_cache or the __sync_* functions on ARM with clang > as they are provided by clang as builtin functions." > > Maybe those functions should be in libgcc after all, if other programs > depend on this. The reason to disable __clear_cache is incorrect in r244382 as it is a builtin in clang, but calls into an external copy of __clear_cache. The reason __clear_cache was disabled was because of a bug in clang where it is unable to compile a builtin function, however I only found this out recently. The issue with clang has been fixed, and, as of r251791 __clear_cache is enabled in compiler-rt. Andrew > > -Dimitry > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" > >