aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-05-18 14:46:32 +0200
committerMartin Liska <marxin@gcc.gnu.org>2018-05-18 12:46:32 +0000
commitc74bd3fba3572d5825fcc7fabfd136b22c7981ad (patch)
treeeacb67111d71264764a92e34f26db84357547c4b /gcc/doc
parentbec3ee81e3c60bc4e8001871ede2b0b07ff417f1 (diff)
downloadgcc-c74bd3fba3572d5825fcc7fabfd136b22c7981ad.zip
gcc-c74bd3fba3572d5825fcc7fabfd136b22c7981ad.tar.gz
gcc-c74bd3fba3572d5825fcc7fabfd136b22c7981ad.tar.bz2
Print working directory to gcov files (PR gcov-profile/84846).
2018-05-18 Martin Liska <mliska@suse.cz> PR gcov-profile/84846 * coverage.c (coverage_init): Write PWD to .gcno file. * doc/gcov.texi: Document how working directory is printed. * gcov-dump.c (dump_gcov_file): Print PWD. * gcov.c (output_intermediate_file): Likewise. (read_graph_file): Read PWD string. (output_lines): Print PWD. From-SVN: r260359
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/gcov.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi
index 5923587..54625ce 100644
--- a/gcc/doc/gcov.texi
+++ b/gcc/doc/gcov.texi
@@ -189,6 +189,7 @@ one entry per line
@smallexample
version:@var{gcc_version}
+cwd:@var{working_directory}
file:@var{source_file_name}
function:@var{start_line_number},@var{end_line_number},@var{execution_count},@var{function_name}
lcount:@var{line number},@var{execution_count},@var{has_unexecuted_block}
@@ -210,6 +211,7 @@ Here is a sample when @option{-i} is used in conjunction with @option{-b} option
@smallexample
version: 8.1.0 20180103
+cwd:/home/gcc/testcase
file:tmp.cpp
function:7,7,0,_ZN3FooIcEC2Ev
function:7,7,1,_ZN3FooIiEC2Ev
@@ -441,6 +443,7 @@ Here is a sample:
@smallexample
-: 0:Source:tmp.cpp
+ -: 0:Working directory:/home/gcc/testcase
-: 0:Graph:tmp.gcno
-: 0:Data:tmp.gcda
-: 0:Runs:1
@@ -508,6 +511,7 @@ counts, and the output looks like this:
@smallexample
-: 0:Source:tmp.cpp
+ -: 0:Working directory:/home/gcc/testcase
-: 0:Graph:tmp.gcno
-: 0:Data:tmp.gcda
-: 0:Runs:1
@@ -596,6 +600,7 @@ When you use the @option{-b} option, your output looks like this:
@smallexample
-: 0:Source:tmp.cpp
+ -: 0:Working directory:/home/gcc/testcase
-: 0:Graph:tmp.gcno
-: 0:Data:tmp.gcda
-: 0:Runs:1