diff mbox

Trivial fix in dump_access_tree_1

Message ID 20170612170737.rrzo4f242ly4bcyu@virgil.suse.cz
State New
Headers show

Commit Message

Martin Jambor June 12, 2017, 5:07 p.m. UTC
Hello,

when invoking dump_access_tree_1 from gdb, I found out that it
attempts to write to dump_file even though it should dump to its
parameter f.  I am about to fix it by the following obvious patch,
after it passes bootstrap and testing on an x86_64-linux (along with
more substantive patches).

Thanks,

Martin


2017-06-12  Martin Jambor  <mjambor@suse.cz>

	* tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
	instead of f.
---
 gcc/tree-sra.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index f25818f4481..42879adbad1 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -470,7 +470,7 @@  dump_access_tree_1 (FILE *f, struct access *access, int level)
       int i;
 
       for (i = 0; i < level; i++)
-	fputs ("* ", dump_file);
+	fputs ("* ", f);
 
       dump_access (f, access, true);