builtins.c (expand_builtin_memcpy_with_bounds): Use target hook instead of BNDmode.
authorIlya Enkovich <ilya.enkovich@intel.com>
Mon, 17 Nov 2014 16:17:06 +0000 (16:17 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Mon, 17 Nov 2014 16:17:06 +0000 (16:17 +0000)
* builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
instead of BNDmode.
(expand_builtin_mempcpy_with_bounds): Likewise.
(expand_builtin_memset_with_bounds): Likewise.

From-SVN: r217658

gcc/ChangeLog
gcc/builtins.c

index e4c10c901802914fb6da131857d0691631296558..561fc438e9b60cea70675f04afbfb529c2b9430e 100644 (file)
@@ -1,3 +1,10 @@
+2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
+
+       * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
+       instead of BNDmode.
+       (expand_builtin_mempcpy_with_bounds): Likewise.
+       (expand_builtin_memset_with_bounds): Likewise.
+
 2014-11-17  Ilya Enkovich  <ilya.enkovich@intel.com>
 
        * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
index 7ec2d5f8e8c61be692b5489825834a8ec3c0510c..f48745ee23f4979cce5cf64a91ad881faed64e6b 100644 (file)
@@ -3297,7 +3297,7 @@ expand_builtin_memcpy_with_bounds (tree exp, rtx target)
       /* Return src bounds with the result.  */
       if (res)
        {
-         rtx bnd = force_reg (BNDmode,
+         rtx bnd = force_reg (targetm.chkp_bound_mode (),
                               expand_normal (CALL_EXPR_ARG (exp, 1)));
          res = chkp_join_splitted_slot (res, bnd);
        }
@@ -3354,7 +3354,7 @@ expand_builtin_mempcpy_with_bounds (tree exp, rtx target, machine_mode mode)
       /* Return src bounds with the result.  */
       if (res)
        {
-         rtx bnd = force_reg (BNDmode,
+         rtx bnd = force_reg (targetm.chkp_bound_mode (),
                               expand_normal (CALL_EXPR_ARG (exp, 1)));
          res = chkp_join_splitted_slot (res, bnd);
        }
@@ -3760,7 +3760,7 @@ expand_builtin_memset_with_bounds (tree exp, rtx target, machine_mode mode)
       /* Return src bounds with the result.  */
       if (res)
        {
-         rtx bnd = force_reg (BNDmode,
+         rtx bnd = force_reg (targetm.chkp_bound_mode (),
                               expand_normal (CALL_EXPR_ARG (exp, 1)));
          res = chkp_join_splitted_slot (res, bnd);
        }