Re: [PATCH] Respect -fprofile-prefix-map for getcwd in .gcno files

2025-01-02 Thread Richard Biener
On Wed, Jan 1, 2025 at 1:44 AM Fangrui Song wrote: > > so that > `gcc -c a.cc --coverage -fprofile-prefix-map=$PWD=.` > does not emit $PWD in the generated a.gcno file. This looks OK to me. Please leave a few days for others to comment though. Thanks, Richard. > PR gcov-profile/96092 >

[PATCH] Respect -fprofile-prefix-map for getcwd in .gcno files

2024-12-31 Thread Fangrui Song
so that `gcc -c a.cc --coverage -fprofile-prefix-map=$PWD=.` does not emit $PWD in the generated a.gcno file. PR gcov-profile/96092 --- gcc/coverage.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/coverage.cc b/gcc/coverage.cc index 1ed55fed547..c6e9aced6fe 1006