re PR target/65527 (ICE: in expand_builtin_with_bounds, at builtins.c:7120 with ...
authorIlya Enkovich <ilya.enkovich@intel.com>
Mon, 1 Jun 2015 11:24:07 +0000 (11:24 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Mon, 1 Jun 2015 11:24:07 +0000 (11:24 +0000)
commit8e9b2773979616d97a18977bb2fb8cab75fd1e60
tree20d751c59fc8cbfe3db9985d594e401492c12d91
parentf4fa7bb4733608417a7f2d934f001e6fd69c1cf8
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
gcc/ChangeLog
gcc/cgraph.c
gcc/lto-wrapper.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/mpx/chkp-fix-calls-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/mpx/chkp-fix-calls-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/mpx/chkp-fix-calls-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/mpx/chkp-fix-calls-4.c [new file with mode: 0644]
gcc/tree-chkp.c
gcc/tree-chkp.h