varasm.c (assemble_name): Mark needed variables even when global info is ready.

* varasm.c (assemble_name): Mark needed variables even when
	global info is ready.

From-SVN: r68472
This commit is contained in:
Jan Hubicka 2003-06-25 11:32:44 +02:00 committed by Jan Hubicka
parent 3f8b659dbd
commit 380e198464
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,8 @@
Wed Jun 25 11:31:59 CEST 2003 Jan Hubicka <jh@suse.cz>
* varasm.c (assemble_name): Mark needed variables even when
global info is ready.
2003-06-24 Jerry Quinn <jlquinn@optonline.net>
PR other/11280

View File

@ -1747,14 +1747,17 @@ assemble_name (file, name)
id = maybe_get_identifier (real_name);
if (id)
{
if (!TREE_SYMBOL_REFERENCED (id)
&& !cgraph_global_info_ready)
if (!TREE_SYMBOL_REFERENCED (id))
{
struct cgraph_node *node = cgraph_node_for_identifier (id);
struct cgraph_node *node;
struct cgraph_varpool_node *vnode;
if (node)
cgraph_mark_needed_node (node, 1);
if (!cgraph_global_info_ready)
{
node = cgraph_node_for_identifier (id);
if (node)
cgraph_mark_needed_node (node, 1);
}
vnode = cgraph_varpool_node_for_identifier (id);
if (vnode)