On Jun 27, 2013, at 20:48, Andrew Turner <and...@fubar.geek.nz> wrote:
> On Thu, 27 Jun 2013 13:06:07 +0200
> Dimitry Andric <dimi...@andric.com> 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.


Okay, but apparently compilers such as gcc do not use compiler-rt at
all, but expect the function to be available in libgcc instead.

So since clang can compile the definition on arm now, shall we re-enable
it for libgcc too?

-Dimitry

_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to