aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-chkp.h
diff options
context:
space:
mode:
authorIlya Enkovich <ilya.enkovich@intel.com>2015-06-01 11:24:07 +0000
committerIlya Enkovich <ienkovich@gcc.gnu.org>2015-06-01 11:24:07 +0000
commit8e9b2773979616d97a18977bb2fb8cab75fd1e60 (patch)
tree20d751c59fc8cbfe3db9985d594e401492c12d91 /gcc/tree-chkp.h
parentf4fa7bb4733608417a7f2d934f001e6fd69c1cf8 (diff)
downloadgcc-8e9b2773979616d97a18977bb2fb8cab75fd1e60.zip
gcc-8e9b2773979616d97a18977bb2fb8cab75fd1e60.tar.gz
gcc-8e9b2773979616d97a18977bb2fb8cab75fd1e60.tar.bz2
re PR target/65527 (ICE: in expand_builtin_with_bounds, at builtins.c:7120 with -fcheck-pointer-bounds -mmpx)
gcc/ PR target/65527 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add redirection for instrumented calls. * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds. (append_compiler_options): Append -fcheck-pointer-bounds. * tree-chkp.h (chkp_copy_call_skip_bounds): New. (chkp_redirect_edge): New. * tree-chkp.c (chkp_copy_call_skip_bounds): New. (chkp_redirect_edge): New. gcc/testsuite/ PR target/65527 * gcc.target/i386/mpx/chkp-fix-calls-1.c: New. * gcc.target/i386/mpx/chkp-fix-calls-2.c: New. * gcc.target/i386/mpx/chkp-fix-calls-3.c: New. * gcc.target/i386/mpx/chkp-fix-calls-4.c: New. From-SVN: r223929
Diffstat (limited to 'gcc/tree-chkp.h')
-rw-r--r--gcc/tree-chkp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-chkp.h b/gcc/tree-chkp.h
index 1bafe99..b5ab562 100644
--- a/gcc/tree-chkp.h
+++ b/gcc/tree-chkp.h
@@ -56,5 +56,7 @@ extern bool chkp_gimple_call_builtin_p (gimple call,
extern void chkp_expand_bounds_reset_for_mem (tree mem, tree ptr);
extern tree chkp_insert_retbnd_call (tree bndval, tree retval,
gimple_stmt_iterator *gsi);
+extern gcall *chkp_copy_call_skip_bounds (gcall *call);
+extern bool chkp_redirect_edge (cgraph_edge *e);
#endif /* GCC_TREE_CHKP_H */