Commit fa22501a by Tom de Vries Committed by Tom de Vries

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
parent 59bc6ce9
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.
2016-03-18 Jakub Jelinek <jakub@redhat.com> 2016-03-18 Jakub Jelinek <jakub@redhat.com>
* reload1.c (emit_input_reload_insns): Use simplify_replace_rtx * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
......
...@@ -3372,6 +3372,7 @@ cgraph_node::get_body (void) ...@@ -3372,6 +3372,7 @@ cgraph_node::get_body (void)
const char *saved_dump_file_name = dump_file_name; const char *saved_dump_file_name = dump_file_name;
int saved_dump_flags = dump_flags; int saved_dump_flags = dump_flags;
dump_file_name = NULL; dump_file_name = NULL;
dump_file = NULL;
push_cfun (DECL_STRUCT_FUNCTION (decl)); push_cfun (DECL_STRUCT_FUNCTION (decl));
execute_all_ipa_transforms (); execute_all_ipa_transforms ();
......
2016-03-18 Tom de Vries <tom@codesourcery.com>
PR ipa/70269
* gcc.dg/pr70269.c: New test.
2016-03-18 Jakub Jelinek <jakub@redhat.com> 2016-03-18 Jakub Jelinek <jakub@redhat.com>
PR c++/70267 PR c++/70267
......
/* { dg-do compile } */
/* { dg-options "-O2 -fipa-pta -fdump-ipa-pta-graph" } */
void
foo (void)
{
}
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