diff options
author | Richard Biener <rguenther@suse.de> | 2014-04-28 11:30:09 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-04-28 11:30:09 +0000 |
commit | 2cbf2d9595cc705613fde7eb201d207adb92495d (patch) | |
tree | 4f9b23d524821efc4c27bb71b50ded92810d7fb2 /gcc/cgraphunit.c | |
parent | ba21a04a1e9b611b3f97895af0c7af3871991c94 (diff) | |
download | gcc-2cbf2d9595cc705613fde7eb201d207adb92495d.zip gcc-2cbf2d9595cc705613fde7eb201d207adb92495d.tar.gz gcc-2cbf2d9595cc705613fde7eb201d207adb92495d.tar.bz2 |
tree-pass.h (execute_pass_list): Adjust prototype.
2014-04-28 Richard Biener <rguenther@suse.de>
* tree-pass.h (execute_pass_list): Adjust prototype.
* passes.c (pass_manager::execute_early_local_passes):
Adjust.
(do_per_function): Change callback signature, push all actual
work to the callbals.
(do_per_function_toporder): Likewise.
(execute_function_dump): Adjust.
(execute_function_todo): Likewise.
(clear_last_verified): Likewise.
(verify_curr_properties): Likewise.
(update_properties_after_pass): Likewise.
(execute_pass_list_1): Split out from ...
(execute_pass_list): ... here. Adjust.
(execute_ipa_pass_list): Likewise.
* cgraphunit.c (cgraph_add_new_function): Adjust.
(analyze_function): Likewise.
(expand_function): Likewise.
* cgraph.c (release_function_body): Free dominance info
here instead of asserting it was magically freed elsewhere.
From-SVN: r209856
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 7bf9a07..d06ce32 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -520,7 +520,7 @@ cgraph_add_new_function (tree fndecl, bool lowered) push_cfun (DECL_STRUCT_FUNCTION (fndecl)); gimple_register_cfg_hooks (); bitmap_obstack_initialize (NULL); - execute_pass_list (passes->all_lowering_passes); + execute_pass_list (cfun, passes->all_lowering_passes); passes->execute_early_local_passes (); bitmap_obstack_release (NULL); pop_cfun (); @@ -658,7 +658,7 @@ analyze_function (struct cgraph_node *node) gimple_register_cfg_hooks (); bitmap_obstack_initialize (NULL); - execute_pass_list (g->get_passes ()->all_lowering_passes); + execute_pass_list (cfun, g->get_passes ()->all_lowering_passes); free_dominance_info (CDI_POST_DOMINATORS); free_dominance_info (CDI_DOMINATORS); compact_blocks (); @@ -1771,7 +1771,7 @@ expand_function (struct cgraph_node *node) /* Signal the start of passes. */ invoke_plugin_callbacks (PLUGIN_ALL_PASSES_START, NULL); - execute_pass_list (g->get_passes ()->all_passes); + execute_pass_list (cfun, g->get_passes ()->all_passes); /* Signal the end of passes. */ invoke_plugin_callbacks (PLUGIN_ALL_PASSES_END, NULL); |