Rename BUILT_IN_ASAN_CLOBBER_N to
authorMartin Liska <mliska@suse.cz>
Tue, 13 Dec 2016 13:33:35 +0000 (14:33 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 13 Dec 2016 13:33:35 +0000 (13:33 +0000)
* asan.c (asan_expand_mark_ifn): Use renamed
BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
* sanitizer.def: Likewise.

From-SVN: r243605

gcc/ChangeLog
gcc/asan.c
gcc/sanitizer.def

index 5fd41549487c27494bb29f1d780504ffb84909bd..05ddb301d737cfec5c0df1da18f0ae6df3aa7cb7 100644 (file)
@@ -1,3 +1,9 @@
+2016-12-13  Martin Liska  <mliska@suse.cz>
+
+       * asan.c (asan_expand_mark_ifn): Use renamed
+       BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
+       * sanitizer.def: Likewise.
+
 2016-12-13  James Greenhalgh  <james.greenhalgh@arm.com>
 
        * doc/extend.texi (Half-Precision): Update to document current
index e297784270d18cf19270eea3307ad8a7e710128d..53acff0a2fb521dead22e6bcc0b72f626b1a77f2 100644 (file)
@@ -2838,8 +2838,9 @@ asan_expand_mark_ifn (gimple_stmt_iterator *iter)
       gsi_insert_before (iter, g, GSI_SAME_STMT);
       tree sz_arg = gimple_assign_lhs (g);
 
-      tree fun = builtin_decl_implicit (is_poison ? BUILT_IN_ASAN_CLOBBER_N
-                                       : BUILT_IN_ASAN_UNCLOBBER_N);
+      tree fun
+       = builtin_decl_implicit (is_poison ? BUILT_IN_ASAN_POISON_STACK_MEMORY
+                                : BUILT_IN_ASAN_UNPOISON_STACK_MEMORY);
       g = gimple_build_call (fun, 2, base_addr, sz_arg);
       gimple_set_location (g, loc);
       gsi_insert_after (iter, g, GSI_NEW_STMT);
index 3db08a7b7029bd1996f8b85029ec3cd6f65d5a04..43e46f90e9ccb375d9591f25de353070f61ead23 100644 (file)
@@ -165,9 +165,11 @@ DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
 DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_AFTER_DYNAMIC_INIT,
                      "__asan_after_dynamic_init",
                      BT_FN_VOID, ATTR_NOTHROW_LEAF_LIST)
-DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_CLOBBER_N, "__asan_poison_stack_memory",
+DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_POISON_STACK_MEMORY,
+                     "__asan_poison_stack_memory",
                      BT_FN_VOID_PTR_PTRMODE, ATTR_NOTHROW_LEAF_LIST)
-DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_UNCLOBBER_N, "__asan_unpoison_stack_memory",
+DEF_SANITIZER_BUILTIN(BUILT_IN_ASAN_UNPOISON_STACK_MEMORY,
+                     "__asan_unpoison_stack_memory",
                      BT_FN_VOID_PTR_PTRMODE, ATTR_NOTHROW_LEAF_LIST)
 
 /* Thread Sanitizer */