ipa.c (symbol_table::remove_unreachable_nodes): Don't remove instumentation thunks...
authorIlya Enkovich <ilya.enkovich@intel.com>
Wed, 3 Jun 2015 08:29:28 +0000 (08:29 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Wed, 3 Jun 2015 08:29:28 +0000 (08:29 +0000)
commit48de5d37c34a0d18b4f0e19e9ab3f661586ae9ee
tree2937d0650a54355694d28bd857d54e78bcd1f876
parentb2858c9f3ed8275a61ee02421b8fc51ab070c79e
ipa.c (symbol_table::remove_unreachable_nodes): Don't remove instumentation thunks calling reachable functions.

gcc/

* ipa.c (symbol_table::remove_unreachable_nodes): Don't
remove instumentation thunks calling reachable functions.
* lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
* lto/lto-partition.c (privatize_symbol_name_1): New.
(privatize_symbol_name): Privatize both decl and orig_decl
names for instrumented functions.
* cgraph.c (cgraph_node::verify_node): Add transparent
alias chain check for instrumented node.

gcc/testsuite/

* gcc.dg/lto/chkp-privatize-1_0.c: New.
* gcc.dg/lto/chkp-privatize-1_1.c: New.
* gcc.dg/lto/chkp-privatize-2_0.c: New.
* gcc.dg/lto/chkp-privatize-2_1.c: New.

From-SVN: r224063
gcc/ChangeLog
gcc/cgraph.c
gcc/ipa.c
gcc/lto-cgraph.c
gcc/lto/lto-partition.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/chkp-privatize-1_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/chkp-privatize-1_1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/chkp-privatize-2_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/chkp-privatize-2_1.c [new file with mode: 0644]