aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2002-10-03 23:22:12 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2002-10-03 21:22:12 +0000
commit92b7a2a514865e5284143beeacfe3b57341cec79 (patch)
tree3dffee0546f36c9529e018025c2961adf6c73808 /gcc/final.c
parent429489e54f39016332a7f3a79ace6c42aafdf0c1 (diff)
downloadgcc-92b7a2a514865e5284143beeacfe3b57341cec79.zip
gcc-92b7a2a514865e5284143beeacfe3b57341cec79.tar.gz
gcc-92b7a2a514865e5284143beeacfe3b57341cec79.tar.bz2
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/final.c b/gcc/final.c
index 0ff3c3a..2f5c823 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;
}