[PATCH] Allow clang to build __clear_cache on ARM

Andrew Turner andrew at fubar.geek.nz
Sun Jun 9 13:30:26 PDT 2013


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang_clear_cache.diff
Type: text/x-patch
Size: 3431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130609/7f65d846/attachment.bin>


More information about the cfe-commits mailing list