[PATCH] Fix profile name files without -fprofile-dir.

Martin Liška mliska@suse.cz
Wed Dec 4 10:48:00 GMT 2019


Hello.

As mentioned in here https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91971#c7,
we should not mangle profile data and note files unless -fprofile-dir is
used (and an absolute path is used).

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
I'll install the patch if there are no objections.

Thanks,
Martin

gcc/ChangeLog:

2019-12-04  Martin Liska  <mliska@suse.cz>

	PR gcov-profile/91971
	* coverage.c (coverage_init): Mangle full path
	only when -fprofile-dir is used.
---
  gcc/coverage.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-profile-name-files-without-fprofile-dir.patch
Type: text/x-patch
Size: 445 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191204/6a2b73cf/attachment.bin>


More information about the Gcc-patches mailing list