diff options
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 0239d6ad62b..5ef7bd2034d 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -15143,7 +15143,7 @@ reference_to_unused (tree * tp, int * walk_subtrees, else if (TREE_CODE (*tp) == VAR_DECL) { struct varpool_node *node = varpool_get_node (*tp); - if (!node || !node->symbol.definition) + if (!node || !node->definition) return *tp; } else if (TREE_CODE (*tp) == FUNCTION_DECL @@ -17821,7 +17821,7 @@ premark_types_used_by_global_vars_helper (void **slot, /* Ask cgraph if the global variable really is to be emitted. If yes, then we'll keep the DIE of ENTRY->TYPE. */ struct varpool_node *node = varpool_get_node (entry->var_decl); - if (node && node->symbol.definition) + if (node && node->definition) { die->die_perennial_p = 1; /* Keep the parent DIEs as well. */ |