diff options
author | Aldy Hernandez <aldyh@gcc.gnu.org> | 2014-09-04 16:37:36 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2014-09-04 16:37:36 +0000 |
commit | 73179e4a2454d9af3da90d7893b1c05dfc03f7d2 (patch) | |
tree | 64d516c6714ccf738bf4c8580b17ca9b6cfea129 /gcc/tree.c | |
parent | 514372694337432c7b8a2e989384d9bcb64c79ac (diff) | |
download | gcc-73179e4a2454d9af3da90d7893b1c05dfc03f7d2.zip gcc-73179e4a2454d9af3da90d7893b1c05dfc03f7d2.tar.gz gcc-73179e4a2454d9af3da90d7893b1c05dfc03f7d2.tar.bz2 |
dearly: Emit DIEs for decls early in the compilation process.
This is the original patch from Michael Matz, ported to a more recent
mainline.
From-SVN: r214906
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 |