diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-02-18 12:37:02 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-02-18 12:37:02 +0100 |
commit | 4ab26ee0222cc447455f32ef755a7c17da3b001f (patch) | |
tree | 6301936495bc984c30778148808de04d76ab7225 /gcc/cgraphclones.c | |
parent | 6f423f4c894fe9dada8ad862b237001c99aa6150 (diff) | |
download | gcc-4ab26ee0222cc447455f32ef755a7c17da3b001f.zip gcc-4ab26ee0222cc447455f32ef755a7c17da3b001f.tar.gz gcc-4ab26ee0222cc447455f32ef755a7c17da3b001f.tar.bz2 |
re PR ipa/65087 (r220742 causes: ICE: in ipcp_verify_propagated_values, at ipa-cp.c:1057)
PR ipa/65087
* cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
section if !implicit_section.
(cgraph_node::create_version_clone_with_body): Likewise.
* trans-mem.c (ipa_tm_create_version): Likewise.
From-SVN: r220786
Diffstat (limited to 'gcc/cgraphclones.c')
-rw-r--r-- | gcc/cgraphclones.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index 863081e..655b0ab 100644 --- a/gcc/cgraphclones.c +++ b/gcc/cgraphclones.c @@ -617,7 +617,7 @@ cgraph_node::create_virtual_clone (vec<cgraph_edge *> redirect_callers, ABI support for this. */ set_new_clone_decl_and_node_flags (new_node); new_node->clone.tree_map = tree_map; - if (!DECL_ONE_ONLY (old_decl)) + if (!implicit_section) new_node->set_section (get_section ()); /* Clones of global symbols or symbols with unique names are unique. */ @@ -1011,7 +1011,8 @@ cgraph_node::create_version_clone_with_body new_version_node->externally_visible = 0; new_version_node->local.local = 1; new_version_node->lowered = true; - new_version_node->set_section (get_section ()); + if (!implicit_section) + new_version_node->set_section (get_section ()); /* Clones of global symbols or symbols with unique names are unique. */ if ((TREE_PUBLIC (old_decl) && !DECL_EXTERNAL (old_decl) |