re PR bootstrap/50822 (Solaris/SPARC bootstrap failure with Sun as: invalid assembler for ios_init.cc)

PR bootstrap/50822
	* cgraphunit.c (output_weakrefs): Output really only weakrefs.

From-SVN: r181311
This commit is contained in:
Jan Hubicka 2011-11-12 14:19:55 +01:00 committed by Jan Hubicka
parent bcf83e0029
commit c481ae7f87
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-11-12 Jan Hubicka <jh@suse.cz>
PR bootstrap/50822
* cgraphunit.c (output_weakrefs): Output really only weakrefs.
2011-11-12 Nathan Sidwell <nathan@acm.org>
* gcov.c (struct name_map): New.

View File

@ -2101,13 +2101,15 @@ output_weakrefs (void)
struct varpool_node *vnode;
for (node = cgraph_nodes; node; node = node->next)
if (node->alias && DECL_EXTERNAL (node->decl)
&& !TREE_ASM_WRITTEN (node->decl))
&& !TREE_ASM_WRITTEN (node->decl)
&& lookup_attribute ("weakref", DECL_ATTRIBUTES (node->decl)))
assemble_alias (node->decl,
node->thunk.alias ? DECL_ASSEMBLER_NAME (node->thunk.alias)
: get_alias_symbol (node->decl));
for (vnode = varpool_nodes; vnode; vnode = vnode->next)
if (vnode->alias && DECL_EXTERNAL (vnode->decl)
&& !TREE_ASM_WRITTEN (vnode->decl))
&& !TREE_ASM_WRITTEN (vnode->decl)
&& lookup_attribute ("weakref", DECL_ATTRIBUTES (vnode->decl)))
assemble_alias (vnode->decl,
vnode->alias_of ? DECL_ASSEMBLER_NAME (vnode->alias_of)
: get_alias_symbol (vnode->decl));