diff options
author | Martin Liska <mliska@suse.cz> | 2018-05-18 14:46:32 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-05-18 12:46:32 +0000 |
commit | c74bd3fba3572d5825fcc7fabfd136b22c7981ad (patch) | |
tree | eacb67111d71264764a92e34f26db84357547c4b /gcc/gcov-dump.c | |
parent | bec3ee81e3c60bc4e8001871ede2b0b07ff417f1 (diff) | |
download | gcc-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/gcov-dump.c')
-rw-r--r-- | gcc/gcov-dump.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gcov-dump.c b/gcc/gcov-dump.c index ba432db..0ae7e94 100644 --- a/gcc/gcov-dump.c +++ b/gcc/gcov-dump.c @@ -220,6 +220,8 @@ dump_gcov_file (const char *filename) if (!is_data_type) { + printf ("%s:cwd: %s\n", filename, gcov_read_string ()); + /* Support for unexecuted basic blocks. */ unsigned support_unexecuted_blocks = gcov_read_unsigned (); if (!support_unexecuted_blocks) |