Commit babf1701 by Jan Hubicka Committed by Jan Hubicka

toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool nodes


	* toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
	nodes

From-SVN: r160056
parent fbd767b1
2010-05-30 Jan Hubicka <jh@suse.cz>
* toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
nodes
2010-05-30 Richard Guenther <rguenther@suse.de>
* tree-cfg.c (verify_gimple_assign_single): Implement
......
......@@ -772,17 +772,19 @@ wrapup_global_declaration_2 (tree decl)
{
struct varpool_node *node;
bool needed = true;
node = varpool_node (decl);
node = varpool_get_node (decl);
if (node->finalized)
if (!node && flag_ltrans)
needed = false;
else if (node->alias)
else if (node && node->finalized)
needed = false;
else if (node && node->alias)
needed = false;
else if (!cgraph_global_info_ready
&& (TREE_USED (decl)
|| TREE_USED (DECL_ASSEMBLER_NAME (decl))))
/* needed */;
else if (node->needed)
else if (node && node->needed)
/* needed */;
else if (DECL_COMDAT (decl))
needed = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment