Patchwork Use local-decls in aliased vars dumping

login
register
mail settings
Submitter Richard Guenther
Date July 23, 2012, 1:22 p.m.
Message ID <alpine.LNX.2.00.1207231521510.17088@jbgna.fhfr.qr>
Download mbox | patch
Permalink /patch/172679/
State New
Headers show

Comments

Richard Guenther - July 23, 2012, 1:22 p.m.
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2012-07-23  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-alias.c (dump_alias_info): Walk over local decls
	instead of referenced vars.

Patch

Index: gcc/tree-ssa-alias.c
===================================================================
--- gcc/tree-ssa-alias.c	(revision 189718)
+++ gcc/tree-ssa-alias.c	(working copy)
@@ -378,17 +378,16 @@  stmt_may_clobber_global_p (gimple stmt)
 void
 dump_alias_info (FILE *file)
 {
-  size_t i;
+  unsigned i;
   const char *funcname
     = lang_hooks.decl_printable_name (current_function_decl, 2);
-  referenced_var_iterator rvi;
   tree var;
 
   fprintf (file, "\n\nAlias information for %s\n\n", funcname);
 
   fprintf (file, "Aliased symbols\n\n");
 
-  FOR_EACH_REFERENCED_VAR (cfun, var, rvi)
+  FOR_EACH_LOCAL_DECL (cfun, i, var)
     {
       if (may_be_aliased (var))
 	dump_variable (file, var);