diff options
author | Jan Hubicka <jh@suse.cz> | 2002-10-03 23:22:12 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2002-10-03 21:22:12 +0000 |
commit | 92b7a2a514865e5284143beeacfe3b57341cec79 (patch) | |
tree | 3dffee0546f36c9529e018025c2961adf6c73808 /gcc/final.c | |
parent | 429489e54f39016332a7f3a79ace6c42aafdf0c1 (diff) | |
download | gcc-92b7a2a514865e5284143beeacfe3b57341cec79.tar.gz |
final.c (final): Use symbol name as function name for profiling.
* final.c (final): Use symbol name as function name for profiling.
* profile.c (get_exec_counts): Likewise.
(branch_prob): Likewise.
From-SVN: r57790
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/final.c b/gcc/final.c index 0ff3c3a249c..2f5c8239fa1 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -1915,7 +1915,8 @@ final (first, file, optimize, prescan) functions_tail = &new_item->next; new_item->next = 0; - new_item->name = xstrdup (current_function_name); + new_item->name = xstrdup (IDENTIFIER_POINTER + (DECL_ASSEMBLER_NAME (current_function_decl))); new_item->cfg_checksum = profile_info.current_function_cfg_checksum; new_item->count_edges = profile_info.count_edges_instrumented_now; } |