diff options
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -5032,6 +5032,10 @@ free_lang_data_in_decl (tree decl) { gcc_assert (DECL_P (decl)); + /* Early dumping of DECLs before we lose language data. */ + if (debug_info_level > DINFO_LEVEL_NONE) + dwarf2out_early_decl (decl); + /* Give the FE a chance to remove its own data first. */ lang_hooks.free_lang_data (decl); @@ -5630,8 +5634,7 @@ free_lang_data (void) unsigned i; /* If we are the LTO frontend we have freed lang-specific data already. */ - if (in_lto_p - || !flag_generate_lto) + if (in_lto_p) return 0; /* Allocate and assign alias sets to the standard integer types |