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:
parent
3f8b659dbd
commit
380e198464
@ -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
|
||||
|
13
gcc/varasm.c
13
gcc/varasm.c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user