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

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

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

From-SVN: r189782
This commit is contained in:
Richard Guenther 2012-07-23 13:36:34 +00:00 committed by Richard Biener
parent efbb59b21b
commit fdc030e81b
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2012-07-23 Richard Guenther <rguenther@suse.de>
* tree-ssa-alias.c (dump_alias_info): Walk over local decls
instead of referenced vars.
2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
* coverage.c: Refer to "notes file" instead of "graph file"

View File

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