X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Flto-cgraph.c;h=cb87143e4ac62b2f4b610a19f96a8029d619a2b1;hp=309db7f36cdb060d203d418e0283d2bec7d565dd;hb=5686a04eaa36667071c9c392ef01737fffa65e3d;hpb=58819ffede0496df4e62e10622bee2a63f6f4fc7 diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c index 309db7f36cd..cb87143e4ac 100644 --- a/gcc/lto-cgraph.c +++ b/gcc/lto-cgraph.c @@ -324,7 +324,7 @@ lto_output_node (struct lto_simple_output_block *ob, struct cgraph_node *node, lto_output_sleb128_stream (ob->main_stream, node->global.estimated_growth); lto_output_uleb128_stream (ob->main_stream, node->global.inlined); - if (node->same_comdat_group) + if (node->same_comdat_group && !boundary_p) { ref = lto_cgraph_encoder_lookup (encoder, node->same_comdat_group); gcc_assert (ref != LCC_NOT_FOUND); @@ -447,30 +447,8 @@ output_cgraph (cgraph_node_set set) /* We should have moved all the inlines. */ gcc_assert (!callee->global.inlined_to); add_node_to (encoder, callee); - /* Also with each included function include all other functions - in the same comdat group. */ - if (callee->same_comdat_group) - { - struct cgraph_node *next; - for (next = callee->same_comdat_group; - next != callee; - next = next->same_comdat_group) - if (!cgraph_node_in_set_p (next, set)) - add_node_to (encoder, next); - } } } - /* Also with each included function include all other functions - in the same comdat group. */ - if (node->same_comdat_group) - { - struct cgraph_node *next; - for (next = node->same_comdat_group; - next != node; - next = next->same_comdat_group) - if (!cgraph_node_in_set_p (next, set)) - add_node_to (encoder, next); - } } /* Write out the nodes. We must first output a node and then its clones,