[compiler-rt] r231012 - Allow compiler-rt build on Bitrig

Renato Golin renato.golin at linaro.org
Mon Mar 2 13:02:44 PST 2015


Author: rengolin
Date: Mon Mar  2 15:02:43 2015
New Revision: 231012

URL: http://llvm.org/viewvc/llvm-project?rev=231012&view=rev
Log:
Allow compiler-rt build on Bitrig

This is the only patch Bitrig uses for compiler-rt. It adds support
for Bitrig/arm in the clear cache code.

Patch by Patrick Wildt.

Modified:
    compiler-rt/trunk/lib/builtins/clear_cache.c

Modified: compiler-rt/trunk/lib/builtins/clear_cache.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/clear_cache.c?rev=231012&r1=231011&r2=231012&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/clear_cache.c (original)
+++ compiler-rt/trunk/lib/builtins/clear_cache.c Mon Mar  2 15:02:43 2015
@@ -13,7 +13,7 @@
 #if __APPLE__
   #include <libkern/OSCacheControl.h>
 #endif
-#if defined(__FreeBSD__) && defined(__arm__)
+#if (defined(__FreeBSD__) || defined(__Bitrig__)) && defined(__arm__)
   #include <sys/types.h>
   #include <machine/sysarch.h>
 #endif
@@ -90,7 +90,7 @@ void __clear_cache(void *start, void *en
  * so there is nothing to do
  */
 #elif defined(__arm__) && !defined(__APPLE__)
-    #if defined(__FreeBSD__) || defined(__NetBSD__)
+    #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__Bitrig__)
         struct arm_sync_icache_args arg;
 
         arg.addr = (uintptr_t)start;





More information about the llvm-commits mailing list