aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov-io.cc
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-03-31 08:10:37 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-03-31 08:12:43 +0200
commit63cd7cef7e0f49fa557c5f694dbbd2e68de1f822 (patch)
tree2a022c6a66b0123591b9dcc885ef78ac63d482c1 /gcc/gcov-io.cc
parent0ce8154f1c72e6d701bff969a007938e2f986369 (diff)
downloadgcc-63cd7cef7e0f49fa557c5f694dbbd2e68de1f822.zip
gcc-63cd7cef7e0f49fa557c5f694dbbd2e68de1f822.tar.gz
gcc-63cd7cef7e0f49fa557c5f694dbbd2e68de1f822.tar.bz2
gcov: Reword comment for gcov_read_string()
gcc/ * gcov-io.cc (gcov_read_string): Reword documentation comment.
Diffstat (limited to 'gcc/gcov-io.cc')
-rw-r--r--gcc/gcov-io.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/gcov-io.cc b/gcc/gcov-io.cc
index c2e9e2b6..72c40f8 100644
--- a/gcc/gcov-io.cc
+++ b/gcc/gcov-io.cc
@@ -473,9 +473,9 @@ mangle_path (char const *base)
/* We need to expose the below function when compiling for gcov-tool. */
#if !IN_LIBGCOV || defined (IN_GCOV_TOOL)
-/* Read string from coverage file. Returns a pointer to a static
- buffer, or NULL on empty string. You must copy the string before
- calling another gcov function. */
+/* Read string from coverage file. Allocate the buffer for the string
+ from the heap or die. Return a pointer to the string, or NULL on
+ empty string. */
GCOV_LINKAGE const char *
gcov_read_string (void)