Commit fdc030e8 by Richard Guenther Committed by Richard Biener

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
parent efbb59b2
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> 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
* coverage.c: Refer to "notes file" instead of "graph file" * coverage.c: Refer to "notes file" instead of "graph file"
......
...@@ -378,17 +378,16 @@ stmt_may_clobber_global_p (gimple stmt) ...@@ -378,17 +378,16 @@ stmt_may_clobber_global_p (gimple stmt)
void void
dump_alias_info (FILE *file) dump_alias_info (FILE *file)
{ {
size_t i; unsigned i;
const char *funcname const char *funcname
= lang_hooks.decl_printable_name (current_function_decl, 2); = lang_hooks.decl_printable_name (current_function_decl, 2);
referenced_var_iterator rvi;
tree var; tree var;
fprintf (file, "\n\nAlias information for %s\n\n", funcname); fprintf (file, "\n\nAlias information for %s\n\n", funcname);
fprintf (file, "Aliased symbols\n\n"); 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)) if (may_be_aliased (var))
dump_variable (file, var); dump_variable (file, var);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment