diff options
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 1c82f9c..9bab2a4 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -11319,7 +11319,7 @@ reference_to_unused (tree * tp, int * walk_subtrees, && (!DECL_EXTERNAL (*tp) || DECL_DECLARED_INLINE_P (*tp))) { struct cgraph_node *node = cgraph_node (*tp); - if (!node->output) + if (node->process || TREE_ASM_WRITTEN (*tp)) return *tp; } else if (TREE_CODE (*tp) == STRING_CST && !TREE_ASM_WRITTEN (*tp)) |