[PATCH] Force use of absolute path names for gcov

Bernd Edlinger bernd.edlinger@hotmail.de
Fri Apr 21 18:51:00 GMT 2017


Hi!


If gcov is used in projects where gcc is invoked in different
directories, it may happen that the same source is compiled
with different relative names, and the gcov tool is thus unable
to find out, if it is the same source file or not, or to dump the
source at all, which is a limitation of the gcov tool.

So I would like to add a -fprofile-abs-path option that
forces absolute path names in gcno files, which allows gcov
to get the true canonicalized source name.


Bootstrapped and reg-tested on x86_64-pc-linux-gnu.
Is it OK for trunk?


Thanks
Bernd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: changelog-gcov-abs-path.diff
Type: text/x-patch
Size: 498 bytes
Desc: changelog-gcov-abs-path.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170421/536236c8/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-gcov-abs-path.diff
Type: text/x-patch
Size: 4925 bytes
Desc: patch-gcov-abs-path.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170421/536236c8/attachment-0001.bin>


More information about the Gcc-patches mailing list