Fix fdump-passes
authorTom de Vries <tom@codesourcery.com>
Wed, 15 Apr 2015 18:43:32 +0000 (18:43 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 15 Apr 2015 18:43:32 +0000 (18:43 +0000)
commit5283d1ecc4ed755bca87e31afd0deaf8af17591a
tree4cffd5a80e733e7a6761c0ee546bd4e5bf937ede
parent3a1351b9daff403b268b4e08313bcbafe476be33
Fix fdump-passes

2015-04-15  Tom de Vries  <tom@codesourcery.com>

PR other/65487
* function.c (push_dummy_function): New function.
(init_dummy_function_start): Use push_dummy_function.
(pop_dummy_function): New function.  Factored out of ...
(expand_dummy_function_end): ... here.
* function.h (push_dummy_function, pop_dummy_function): Declare.
* passes.c (pass_manager::dump_passes): Use push_dummy_function and
pop_dummy_function.
* tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.

From-SVN: r222129
gcc/ChangeLog
gcc/function.c
gcc/function.h
gcc/passes.c
gcc/tree-chkp.c