aboutsummaryrefslogtreecommitdiff
path: root/gcc/coverage.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2012-07-23 11:59:15 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2012-07-23 11:59:15 +0000
commit9494c26b170452d2c6d44227f9fb7c3bd6b026bb (patch)
tree6f165840c56b203cb68dd725d9235cd67b425d70 /gcc/coverage.c
parent827601e5f9b2f715ae9cbe253f67e395afcd35e2 (diff)
gcc/
* coverage.c: Refer to "notes file" instead of "graph file" in all comments. Explain history of bbg prefix. * gcov-io.h: Likewise. * gcov.c: Likewise. (find_source): Likewise in fnotice. (read_graph_file): Likewise. (read_count_file): Likewise. * doc/gcov.texi: Document -fprofile-dir flag. Add "notes file" and "data file" explicitly in the explanation of the files. libgcc/ * libgcov.c (__gcov_ior_profiler): Benign comment fix. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@189781 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r--gcc/coverage.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c
index e11505d9b3f..af522891110 100644
--- a/gcc/coverage.c
+++ b/gcc/coverage.c
@@ -97,14 +97,16 @@ static GTY(()) tree gcov_info_var;
static GTY(()) tree gcov_fn_info_type;
static GTY(()) tree gcov_fn_info_ptr_type;
-/* Name of the output file for coverage output file. If this is NULL
- we're not writing to the notes file. */
+/* Name of the notes (gcno) output file. The "bbg" prefix is for
+ historical reasons, when the notes file contained only the
+ basic block graph notes.
+ If this is NULL we're not writing to the notes file. */
static char *bbg_file_name;
-/* File stamp for graph file. */
+/* File stamp for notes file. */
static unsigned bbg_file_stamp;
-/* Name of the count data file. */
+/* Name of the count data (gcda) file. */
static char *da_file_name;
/* Hash table of count data. */
@@ -566,7 +568,7 @@ coverage_compute_cfg_checksum (void)
return chksum;
}
-/* Begin output to the graph file for the current function.
+/* Begin output to the notes file for the current function.
Writes the function header. Returns nonzero if data should be output. */
int
@@ -1079,7 +1081,7 @@ coverage_obj_finish (VEC(constructor_elt,gc) *ctor)
}
/* Perform file-level initialization. Read in data file, generate name
- of graph file. */
+ of notes file. */
void
coverage_init (const char *filename)
@@ -1131,7 +1133,7 @@ coverage_init (const char *filename)
}
}
-/* Performs file-level cleanup. Close graph file, generate coverage
+/* Performs file-level cleanup. Close notes file, generate coverage
variables and constructor. */
void