[PATCH] Print working directory to gcov files (PR gcov-profile/84846).

Martin Liška mliska@suse.cz
Fri May 18 12:29:00 GMT 2018


Hi.

Simple format extension which prints working directory of TU when it was compiled.
It's requested by LCOV folks.

Survives make check -k -j10 RUNTESTFLAGS="gcov.exp"

Ready for trunk?
Thanks,
Martin

gcc/ChangeLog:

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.
---
 gcc/coverage.c    | 1 +
 gcc/doc/gcov.texi | 5 +++++
 gcc/gcov-dump.c   | 2 ++
 gcc/gcov.c        | 7 +++++++
 4 files changed, 15 insertions(+)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Print-working-directory-to-gcov-files-PR-gcov-profil.patch
Type: text/x-patch
Size: 3805 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180518/3d938b85/attachment.bin>


More information about the Gcc-patches mailing list