diff options
author | Jan Hubicka <jh@suse.cz> | 2009-11-11 20:08:44 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2009-11-11 19:08:44 +0000 |
commit | 0bc1b77f3219f3f8038fcc34f13eddc08ba86ce8 (patch) | |
tree | 866b6afdd093937e7194ff58fa04991fef160e5f /gcc/tree-profile.c | |
parent | 17e7cb855000baa6598005571d7dd49cfac5282a (diff) | |
download | gcc-0bc1b77f3219f3f8038fcc34f13eddc08ba86ce8.zip gcc-0bc1b77f3219f3f8038fcc34f13eddc08ba86ce8.tar.gz gcc-0bc1b77f3219f3f8038fcc34f13eddc08ba86ce8.tar.bz2 |
lto-cgraph.c: Include gcov-io.h
* lto-cgraph.c: Include gcov-io.h
(output_profile_summary): New function.
(output_cgraph): Use it.
(input_profile_summary): New function.
(input_cgraph): Use it.
* coverage.c (build_ctr_info_value): Use varpool; initalize
DECL_ASSEMBLER_NAME.
(create_coverage): Likewise.
* tree-profile.c (tree_init_ic_make_global_vars): Likewise.
(tree_init_edge_profiler): Likewise.
* Makefile.in (lto-cgraph.o): Add dependency on gcov-io.h.
From-SVN: r154100
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r-- | gcc/tree-profile.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c index 95ab49a..2b75461 100644 --- a/gcc/tree-profile.c +++ b/gcc/tree-profile.c @@ -82,7 +82,7 @@ tree_init_ic_make_global_vars (void) TREE_PUBLIC (ic_void_ptr_var) = 0; DECL_ARTIFICIAL (ic_void_ptr_var) = 1; DECL_INITIAL (ic_void_ptr_var) = NULL; - assemble_variable (ic_void_ptr_var, 0, 0, 0); + varpool_finalize_decl (ic_void_ptr_var); gcov_type_ptr = build_pointer_type (get_gcov_type ()); ic_gcov_type_ptr_var @@ -93,7 +93,7 @@ tree_init_ic_make_global_vars (void) TREE_PUBLIC (ic_gcov_type_ptr_var) = 0; DECL_ARTIFICIAL (ic_gcov_type_ptr_var) = 1; DECL_INITIAL (ic_gcov_type_ptr_var) = NULL; - assemble_variable (ic_gcov_type_ptr_var, 0, 0, 0); + varpool_finalize_decl (ic_gcov_type_ptr_var); } static void @@ -159,6 +159,14 @@ tree_init_edge_profiler (void) tree_ior_profiler_fn = build_fn_decl ("__gcov_ior_profiler", average_profiler_fn_type); + /* LTO streamer needs assembler names. Because we create these decls + late, we need to initialize them by hand. */ + DECL_ASSEMBLER_NAME (tree_interval_profiler_fn); + DECL_ASSEMBLER_NAME (tree_pow2_profiler_fn); + DECL_ASSEMBLER_NAME (tree_one_value_profiler_fn); + DECL_ASSEMBLER_NAME (tree_indirect_call_profiler_fn); + DECL_ASSEMBLER_NAME (tree_average_profiler_fn); + DECL_ASSEMBLER_NAME (tree_ior_profiler_fn); } } |