r206465 - [ARM64] Fix __clear_cache - ensure it is predefined.
James Molloy
james.molloy at arm.com
Thu Apr 17 05:51:42 PDT 2014
Author: jamesm
Date: Thu Apr 17 07:51:42 2014
New Revision: 206465
URL: http://llvm.org/viewvc/llvm-project?rev=206465&view=rev
Log:
[ARM64] Fix __clear_cache - ensure it is predefined.
Modified:
cfe/trunk/include/clang/Basic/BuiltinsARM64.def
cfe/trunk/test/Sema/builtin-clear_cache.c
Modified: cfe/trunk/include/clang/Basic/BuiltinsARM64.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/BuiltinsARM64.def?rev=206465&r1=206464&r2=206465&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/BuiltinsARM64.def (original)
+++ cfe/trunk/include/clang/Basic/BuiltinsARM64.def Thu Apr 17 07:51:42 2014
@@ -15,7 +15,7 @@
// The format of this database matches clang/Basic/Builtins.def.
// In libgcc
-BUILTIN(__clear_cache, "vv*v*", "")
+BUILTIN(__clear_cache, "vv*v*", "i")
BUILTIN(__builtin_arm_ldrex, "v.", "t")
BUILTIN(__builtin_arm_strex, "i.", "t")
Modified: cfe/trunk/test/Sema/builtin-clear_cache.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/builtin-clear_cache.c?rev=206465&r1=206464&r2=206465&view=diff
==============================================================================
--- cfe/trunk/test/Sema/builtin-clear_cache.c (original)
+++ cfe/trunk/test/Sema/builtin-clear_cache.c Thu Apr 17 07:51:42 2014
@@ -1,5 +1,6 @@
// RUN: %clang_cc1 -triple armv7-none-linux-gnu -fsyntax-only -verify %s
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -fsyntax-only -verify %s
+// RUN: %clang_cc1 -triple arm64-none-linux-gnu -fsyntax-only -verify %s
// expected-no-diagnostics
void __clear_cache(void *a, void *b) {}
More information about the cfe-commits
mailing list