summaryrefslogtreecommitdiff
path: root/gcc/tree-chkp.h
diff options
context:
space:
mode:
authorienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-01 11:24:07 +0000
committerienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-01 11:24:07 +0000
commit100c2304924e45cb3b5db15582cdeef8ed719b52 (patch)
tree20d751c59fc8cbfe3db9985d594e401492c12d91 /gcc/tree-chkp.h
parent764e52945b3a90baf767e6f638098737a96064eb (diff)
downloadgcc-100c2304924e45cb3b5db15582cdeef8ed719b52.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223929 138bc75d-0d04-0410-961f-82ee72b054a4
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 1bafe994da2..b5ab56252ed 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 */