re PR ipa/63814 (g++.dg/ipa/pr61160-1.C fails with -m32 -fPIC)
authorMartin Jambor <mjambor@suse.cz>
Tue, 2 Dec 2014 10:12:27 +0000 (11:12 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 2 Dec 2014 10:12:27 +0000 (11:12 +0100)
commit47f4756ed1a23d93e586ad82e50e759fa4c24b6b
tree72ac8b75d1a23f45e3f88b78b6ade9d43c45254a
parentc271ca677e13442bf7a660deee9a4030107c87e0
re PR ipa/63814 (g++.dg/ipa/pr61160-1.C fails with -m32 -fPIC)

2014-12-02  Martin Jambor  <mjambor@suse.cz>

PR ipa/63814
* ipa-cp.c (same_node_or_its_all_contexts_clone_p): New function.
(cgraph_edge_brings_value_p): New parameter dest, use
same_node_or_its_all_contexts_clone_p and check availability.
(cgraph_edge_brings_value_p): Likewise.
(get_info_about_necessary_edges): New parameter dest, pass it to
cgraph_edge_brings_value_p.  Update caller.
(gather_edges_for_value): Likewise.
(perhaps_add_new_callers): Use cgraph_edge_brings_value_p to check
both the destination and availability.

From-SVN: r218265
gcc/ChangeLog
gcc/ipa-cp.c