[PATCH] Allow clang to build __clear_cache on ARM

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Jun 10 05:56:59 PDT 2013

Can't we use the existing 'f' and change the comment to say
libc/libm/libgcc function?

On 9 June 2013 16:30, Andrew Turner <andrew at fubar.geek.nz> wrote:
> Hello,
> I have attached a patch to allow clang to build the compiler-rt
> __clear_cache function on ARM.
> The problem is, when targeting ARM, clang thinks it is a builtin with no
> external definition. This is incorrect as clang generates a call to the
> __clear_cache function.
> The change I have made is to add a runtime library function attribute
> to the builtin function list. With the attached patch I am able to
> build a version of compiler-rt for FreeBSD/ARM that includes
> __clear_cache.
> Andrew
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

More information about the cfe-commits mailing list