When using -fprofile-generate=/some/path mangle absolute path of file (PR lto/85759).
authorMartin Liska <mliska@suse.cz>
Fri, 29 Jun 2018 14:03:36 +0000 (16:03 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 29 Jun 2018 14:03:36 +0000 (14:03 +0000)
commit1f2bb38a85710f650d1ea87f0765cb50e19c3212
treea4cb15221ae4ad1a6c3e227f6bbb07e6328aa6fc
parent52057dc4ac5295caebf83147f688d769c93cbc8d
When using -fprofile-generate=/some/path mangle absolute path of file (PR lto/85759).

2018-06-29  Martin Liska  <mliska@suse.cz>

PR lto/85759
* coverage.c (coverage_init): Mangle full path name.
* doc/invoke.texi: Document the change.
* gcov-io.c (mangle_path): New.
* gcov-io.h (mangle_path): Likewise.
* gcov.c (mangle_name): Use mangle_path for path mangling.

From-SVN: r262251
gcc/ChangeLog
gcc/coverage.c
gcc/doc/invoke.texi
gcc/gcov-io.c
gcc/gcov-io.h
gcc/gcov.c