Commit a3c70819 by Vladimir Mezentsev Committed by Jeff Law

re PR target/84923 (gcc.dg/attr-weakref-1.c failed on aarch64)

        PR gcc/84923
        * varasm.c (weak_finish): Clean up weak_decls.

From-SVN: r260485
parent 18759120
2018-05-21 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
PR gcc/84923
* varasm.c (weak_finish): Clean up weak_decls.
2018-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com> 2018-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/aarch64.md ("unspec"): Define UNSPEC_SABAL, * config/aarch64/aarch64.md ("unspec"): Define UNSPEC_SABAL,
......
...@@ -5652,7 +5652,8 @@ weak_finish (void) ...@@ -5652,7 +5652,8 @@ weak_finish (void)
tree alias_decl = TREE_PURPOSE (t); tree alias_decl = TREE_PURPOSE (t);
tree target = ultimate_transparent_alias_target (&TREE_VALUE (t)); tree target = ultimate_transparent_alias_target (&TREE_VALUE (t));
if (! TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (alias_decl))) if (! TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (alias_decl))
|| TREE_SYMBOL_REFERENCED (target))
/* Remove alias_decl from the weak list, but leave entries for /* Remove alias_decl from the weak list, but leave entries for
the target alone. */ the target alone. */
target = NULL_TREE; target = NULL_TREE;
......
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