aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2016-03-15 11:51:32 +0000
committerTom de Vries <vries@gcc.gnu.org>2016-03-15 11:51:32 +0000
commit5a15be975d24835b9aa9c743c75235adf58ff8f6 (patch)
tree0bb95f7c43d8ad73e0d43270e605c586b2eeece3 /gcc/cgraph.c
parent3ea33585de3d2b26f65dab8df27b5046981964a7 (diff)
downloadgcc-5a15be975d24835b9aa9c743c75235adf58ff8f6.zip
gcc-5a15be975d24835b9aa9c743c75235adf58ff8f6.tar.gz
gcc-5a15be975d24835b9aa9c743c75235adf58ff8f6.tar.bz2
Fix fdump-ipa-all-graph
2016-03-15 Tom de Vries <tom@codesourcery.com> PR ipa/70161 * cgraph.c (cgraph_node::get_body): Save, reset and restore dump_file_name. * passes.c (execute_one_ipa_transform_pass): Add missing argument to execute_function_dump. (execute_one_pass): Don't dump function if it will be dumped after ipa transform. From-SVN: r234211
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 871ed62..518ef24 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -3369,7 +3369,9 @@ cgraph_node::get_body (void)
{
opt_pass *saved_current_pass = current_pass;
FILE *saved_dump_file = dump_file;
+ const char *saved_dump_file_name = dump_file_name;
int saved_dump_flags = dump_flags;
+ dump_file_name = NULL;
push_cfun (DECL_STRUCT_FUNCTION (decl));
execute_all_ipa_transforms ();
@@ -3381,6 +3383,7 @@ cgraph_node::get_body (void)
current_pass = saved_current_pass;
dump_file = saved_dump_file;
+ dump_file_name = saved_dump_file_name;
dump_flags = saved_dump_flags;
}
return updated;