[cfe-commits] r51133 - /cfe/trunk/include/clang/AST/Builtins.def

Steve Naroff snaroff at apple.com
Wed May 14 15:12:15 PDT 2008


Author: snaroff
Date: Wed May 14 17:12:15 2008
New Revision: 51133

URL: http://llvm.org/viewvc/llvm-project?rev=51133&view=rev
Log:
Add some of GCC's object checking builtin's.

Modified:
    cfe/trunk/include/clang/AST/Builtins.def

Modified: cfe/trunk/include/clang/AST/Builtins.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Builtins.def?rev=51133&r1=51132&r2=51133&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Builtins.def (original)
+++ cfe/trunk/include/clang/AST/Builtins.def Wed May 14 17:12:15 2008
@@ -94,6 +94,10 @@
 BUILTIN(__builtin_va_end, "va&", "n")
 BUILTIN(__builtin_va_copy, "va&a", "n")
 BUILTIN(__builtin_memcpy, "v*v*vC*z", "n")
+// GCC Object size checking builtins
+BUILTIN(__builtin___memcpy_chk, "v*v*vC*zz", "n")
+BUILTIN(__builtin___memmove_chk, "v*v*vC*zz", "n")
+BUILTIN(__builtin___mempcpy_chk, "v*v*vC*zz", "n")
 BUILTIN(__builtin_expect, "iii"   , "nc")
 
 BUILTIN(__builtin_shufflevector, "v."   , "nc")





More information about the cfe-commits mailing list