aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2016-03-18 09:17:23 +0000
committerTom de Vries <vries@gcc.gnu.org>2016-03-18 09:17:23 +0000
commitfa22501afc95b62336ad39d8b1cd5c21162d2487 (patch)
tree67bf20e265ba02cfc52295d29d42710de0e896a1 /gcc/cgraph.c
parent59bc6ce9b36fbec321968053801612f16a3f53a0 (diff)
downloadgcc-fa22501afc95b62336ad39d8b1cd5c21162d2487.zip
gcc-fa22501afc95b62336ad39d8b1cd5c21162d2487.tar.gz
gcc-fa22501afc95b62336ad39d8b1cd5c21162d2487.tar.bz2
Set dump_file to NULL in cgraph_node::get_body
2016-03-18 Tom de Vries <tom@codesourcery.com> PR ipa/70269 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save. * gcc.dg/pr70269.c: New test. From-SVN: r234321
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 518ef24..4804081 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -3372,6 +3372,7 @@ cgraph_node::get_body (void)
const char *saved_dump_file_name = dump_file_name;
int saved_dump_flags = dump_flags;
dump_file_name = NULL;
+ dump_file = NULL;
push_cfun (DECL_STRUCT_FUNCTION (decl));
execute_all_ipa_transforms ();