This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Prune BLOCK_VARs lists in free_lang_data


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)
 	;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]