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/trans-mem.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/trans-mem.c')
-rw-r--r-- | gcc/trans-mem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c index 146a975..078c2da 100644 --- a/gcc/trans-mem.c +++ b/gcc/trans-mem.c @@ -4967,7 +4967,8 @@ ipa_tm_create_version (struct cgraph_node *old_node) new_node->externally_visible = old_node->externally_visible; new_node->lowered = true; new_node->tm_clone = 1; - new_node->set_section (old_node->get_section ()); + if (!old_node->implicit_section) + new_node->set_section (old_node->get_section ()); get_cg_data (&old_node, true)->clone = new_node; if (old_node->get_availability () >= AVAIL_INTERPOSABLE) |