diff options
author | ienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-17 16:17:06 +0000 |
---|---|---|
committer | ienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-17 16:17:06 +0000 |
commit | 17d388d8eb0087180c0170db10b5ccb71592c865 (patch) | |
tree | 92ef65836569361616f422a320c0cb9be1a714a4 /gcc/builtins.c | |
parent | b719a128c3ef251e620592acc5497a34a27e68a5 (diff) |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217658 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 7ec2d5f8e8c..f48745ee23f 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); } |