diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-19 17:52:03 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-19 17:52:03 +0000 |
commit | 9ed5b1f51fab0a96dfa17dfec099a73f4fdeb730 (patch) | |
tree | bb5a4b60b2fba01c8f07af7dea9726c29ea518ca /gcc/cgraphunit.c | |
parent | 941f2388c6654af085ec92de505bc6b53d90b5fa (diff) | |
download | gcc-9ed5b1f51fab0a96dfa17dfec099a73f4fdeb730.tar.gz |
* toplev.c (compile_file): Move call to coverage_finish ...
* cgraphunit.c (ipa_passes): ... here.
Call cgraph_process_new_functions.
* ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
* Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146354 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 859eaddfc6e..a99b7dfe96d 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -134,6 +134,7 @@ along with GCC; see the file COPYING3. If not see #include "tree-iterator.h" #include "tree-pass.h" #include "output.h" +#include "coverage.h" static void cgraph_expand_all_functions (void); static void cgraph_mark_functions_to_output (void); @@ -978,6 +979,8 @@ cgraph_finalize_compilation_unit (void) cgraph_analyze_functions (); timevar_pop (TV_CGRAPH); } + + /* Figure out what functions we want to assemble. */ static void @@ -1238,6 +1241,15 @@ ipa_passes (void) gimple_register_cfg_hooks (); bitmap_obstack_initialize (NULL); execute_ipa_pass_list (all_ipa_passes); + + /* Generate coverage variables and constructors. */ + coverage_finish (); + + /* Process new functions added. */ + set_cfun (NULL); + current_function_decl = NULL; + cgraph_process_new_functions (); + bitmap_obstack_release (NULL); } |