diff options
author | Tom de Vries <tom@codesourcery.com> | 2015-04-15 18:43:32 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2015-04-15 18:43:32 +0000 |
commit | 5283d1ecc4ed755bca87e31afd0deaf8af17591a (patch) | |
tree | 4cffd5a80e733e7a6761c0ee546bd4e5bf937ede /gcc/tree-chkp.c | |
parent | 3a1351b9daff403b268b4e08313bcbafe476be33 (diff) | |
download | gcc-5283d1ecc4ed755bca87e31afd0deaf8af17591a.zip gcc-5283d1ecc4ed755bca87e31afd0deaf8af17591a.tar.gz gcc-5283d1ecc4ed755bca87e31afd0deaf8af17591a.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-chkp.c')
-rw-r--r-- | gcc/tree-chkp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/tree-chkp.c b/gcc/tree-chkp.c index 8c5a628..ebb9a83 100644 --- a/gcc/tree-chkp.c +++ b/gcc/tree-chkp.c @@ -4330,8 +4330,10 @@ chkp_execute (void) static bool chkp_gate (void) { - return cgraph_node::get (cfun->decl)->instrumentation_clone - || lookup_attribute ("chkp ctor", DECL_ATTRIBUTES (cfun->decl)); + cgraph_node *node = cgraph_node::get (cfun->decl); + return ((node != NULL + && node->instrumentation_clone) + || lookup_attribute ("chkp ctor", DECL_ATTRIBUTES (cfun->decl))); } namespace { |