diff options
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index ca88fc56b10..1240ddb5637 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -14572,7 +14572,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->needed) + if (!node || !node->analyzed) return *tp; } else if (TREE_CODE (*tp) == FUNCTION_DECL @@ -17057,7 +17057,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->needed) + if (node && node->analyzed) { die->die_perennial_p = 1; /* Keep the parent DIEs as well. */ @@ -18369,6 +18369,7 @@ gen_producer_string (void) case OPT__output_pch_: case OPT_fdiagnostics_show_location_: case OPT_fdiagnostics_show_option: + case OPT_fdiagnostics_show_caret: case OPT_fverbose_asm: case OPT____: case OPT__sysroot_: |