aboutsummaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-04-23 00:36:28 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-04-23 00:36:28 +0000
commitd4c3ec27386c2b61e46604c0674dbb1dac004310 (patch)
tree790252fc6f2f85414e4da728fab71c76dd6c9020 /gcc/profile.c
parent2ac8a0f9c2464064ba2eb5cd9d63a4f8d6e3525b (diff)
downloadgcc-d4c3ec27386c2b61e46604c0674dbb1dac004310.zip
gcc-d4c3ec27386c2b61e46604c0674dbb1dac004310.tar.gz
gcc-d4c3ec27386c2b61e46604c0674dbb1dac004310.tar.bz2
collect2.c (main): Use concat in lieu of xmalloc/sprintf.
* collect2.c (main): Use concat in lieu of xmalloc/sprintf. (write_c_file_stat): Likewise. * dbxout.c (dbxout_init): Likewise. * profile.c (output_func_start_profiler): Likewise. cp: * xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf. f: * com.c (ffecom_subscript_check_): Use concat in lieu of xmalloc/sprintf. java: * jvspec.c (lang_specific_driver): Fix memory allocation deficit, by using concat in lieu of xmalloc/sprintf. From-SVN: r41495
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 7b5169c..5225308 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);