summaryrefslogtreecommitdiffstats
path: root/gcc/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/profile.c')
-rw-r--r--gcc/profile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/profile.c b/gcc/profile.c
index 7b5169c8d37..52253082aa5 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -1090,8 +1090,7 @@ output_func_start_profiler ()
fnname = get_file_function_name ('I');
cfnname = IDENTIFIER_POINTER (fnname);
- name = xmalloc (strlen (cfnname) + 5);
- sprintf (name, "%sGCOV",cfnname);
+ name = concat (cfnname, "GCOV", NULL);
fnname = get_identifier (name);
free (name);
OpenPOWER on IntegriCloud