diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-13 12:09:46 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-13 12:09:46 +0000 |
commit | 547ca3bd8e3409e0a796c9daace21b8fb981e866 (patch) | |
tree | 1c2ac6570bbc8b01a80d59c4395f5f5e708ea6d0 /gcc/tree-profile.c | |
parent | ca92a39fb16598b71a90ed2be2c3543dd079e66c (diff) | |
download | gcc-547ca3bd8e3409e0a796c9daace21b8fb981e866.tar.gz |
2009-11-13 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 154145
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@154146 138bc75d-0d04-0410-961f-82ee72b054a4
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 95ab49a7543..2b75461b188 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); } } |