aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Enkovich <ilya.enkovich@intel.com>2014-11-17 16:17:06 +0000
committerIlya Enkovich <ienkovich@gcc.gnu.org>2014-11-17 16:17:06 +0000
commit30975f633bf33625a0e89127ac509cac22ed4837 (patch)
tree92ef65836569361616f422a320c0cb9be1a714a4
parentf5fc4a042173fbb015e1a2b882a6bddb5d6dc146 (diff)
downloadgcc-30975f633bf33625a0e89127ac509cac22ed4837.zip
gcc-30975f633bf33625a0e89127ac509cac22ed4837.tar.gz
gcc-30975f633bf33625a0e89127ac509cac22ed4837.tar.bz2
builtins.c (expand_builtin_memcpy_with_bounds): Use target hook instead of BNDmode.
* 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
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/builtins.c6
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e4c10c9..561fc43 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,12 @@
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,
ipa-ref.h, plugin-api.h.
(get_string_length): Handle calls with bounds.
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 7ec2d5f..f48745e 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -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);
}