diff options
author | Tom de Vries <tom@codesourcery.com> | 2016-03-18 09:17:23 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2016-03-18 09:17:23 +0000 |
commit | fa22501afc95b62336ad39d8b1cd5c21162d2487 (patch) | |
tree | 67bf20e265ba02cfc52295d29d42710de0e896a1 /gcc | |
parent | 59bc6ce9b36fbec321968053801612f16a3f53a0 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cgraph.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr70269.c | 7 |
4 files changed, 18 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9604293..10c3a07 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx 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 (); diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7209e5b..e4975b1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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> PR c++/70267 diff --git a/gcc/testsuite/gcc.dg/pr70269.c b/gcc/testsuite/gcc.dg/pr70269.c new file mode 100644 index 0000000..030cea1 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr70269.c @@ -0,0 +1,7 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fipa-pta -fdump-ipa-pta-graph" } */ + +void +foo (void) +{ +} |