Fix IPA CP where it forgot to add a reference in cgraph (PR ipa/71190).
authorMartin Liska <mliska@suse.cz>
Fri, 20 Jan 2017 08:44:35 +0000 (09:44 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 20 Jan 2017 08:44:35 +0000 (08:44 +0000)
commit2d8d3ae29381d13789fa5fa349ec5c302b921aac
tree79ae1578993b051576a1c049cc48e85c5e63a05d
parenta809d56440d84fd363aa542a37d69275fd2930c5
Fix IPA CP where it forgot to add a reference in cgraph (PR ipa/71190).

2017-01-20  Martin Liska  <mliska@suse.cz>

PR ipa/71190
* cgraph.h (maybe_create_reference): Remove argument and
update comment.
* cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
argument.
* ipa-cp.c (create_specialized_node): Likewise.
* symtab.c (symtab_node::maybe_create_reference): Handle
VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.

From-SVN: r244687
gcc/ChangeLog
gcc/cgraph.h
gcc/cgraphclones.c
gcc/ipa-cp.c
gcc/symtab.c