This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Prune BLOCK_VARs lists in free_lang_data
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: Richard Biener <rguenther at suse dot de>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 19 Jan 2016 12:53:52 +0100
- Subject: Re: Prune BLOCK_VARs lists in free_lang_data
- Authentication-results: sourceware.org; auth=none
- References: <20160115110802 dot GD77658 at kam dot mff dot cuni dot cz> <alpine dot LSU dot 2 dot 11 dot 1601151236370 dot 31122 at t29 dot fhfr dot qr> <20160116102709 dot GD46287 at kam dot mff dot cuni dot cz> <0212CB54-48F8-44D0-8ABB-E0034F39294D at suse dot de> <20160116104131 dot GE46287 at kam dot mff dot cuni dot cz>
Hi,
here is updated patch. It has same effect as the former version.
Bootstrapped/regtested x86_64-linux, OK?
Honza
* tree-ssa-live.c (remove_unused_scope_block_p): Also remove
reudndant typedefs.
Index: tree-ssa-live.c
===================================================================
--- tree-ssa-live.c (revision 232466)
+++ tree-ssa-live.c (working copy)
@@ -470,7 +470,8 @@ remove_unused_scope_block_p (tree scope,
types in different orders depending on whether debug
information is being generated. */
- else if (TREE_CODE (*t) == TYPE_DECL
+ else if ((TREE_CODE (*t) == TYPE_DECL
+ && !DECL_IGNORED_P (*t) && !is_redundant_typedef (*t))
|| debug_info_level == DINFO_LEVEL_NORMAL
|| debug_info_level == DINFO_LEVEL_VERBOSE)
;