This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/65487] fdump-passes uses random function as context
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Apr 2015 18:44:04 +0000
- Subject: [Bug other/65487] fdump-passes uses random function as context
- Auto-submitted: auto-generated
- References: <bug-65487-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65487
--- Comment #4 from vries at gcc dot gnu.org ---
Author: vries
Date: Wed Apr 15 18:43:32 2015
New Revision: 222129
URL: https://gcc.gnu.org/viewcvs?rev=222129&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/function.c
trunk/gcc/function.h
trunk/gcc/passes.c
trunk/gcc/tree-chkp.c