Message ID | 3dac6764-6435-8237-6028-505f2ecafebd@suse.cz |
---|---|
State | New |
Headers | show |
Series | Fix profile name files without -fprofile-dir. | expand |
diff --git a/gcc/coverage.c b/gcc/coverage.c index b8b20ddc8e3..2cdbb0172c9 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c @@ -1228,7 +1228,7 @@ coverage_init (const char *filename) else profile_data_prefix = getpwd (); } - else + else if (profile_data_prefix != NULL) { /* when filename is a absolute path, we also need to mangle the full path of filename to prevent the profiling data being stored into a