From 554ced43ebe7fd21827d90449e42adf140f32405 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 6 Feb 2020 14:53:28 +0100 Subject: [PATCH] Revert mangling of names with -fprofile-generate=. PR gcov-profile/91971 PR gcov-profile/93466 * coverage.c (coverage_init): Revert mangling of path into filename. It can lead to huge filename length. Creation of subfolders seem more natural. --- gcc/ChangeLog | 8 ++++++++ gcc/coverage.c | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 82079c76325..bc9c3720488 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2020-02-06 Martin Liska + + PR gcov-profile/91971 + PR gcov-profile/93466 + * coverage.c (coverage_init): Revert mangling of + path into filename. It can lead to huge filename length. + Creation of subfolders seem more natural. + 2020-02-06 Stam Markianos-Wright PR target/93300 diff --git a/gcc/coverage.c b/gcc/coverage.c index f29ff640c43..30ae84df90f 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c @@ -1227,14 +1227,6 @@ coverage_init (const char *filename) else profile_data_prefix = getpwd (); } - 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 - different path than that specified by profile_data_prefix. */ - filename = mangle_path (filename); - len = strlen (filename); - } if (profile_data_prefix) prefix_len = strlen (profile_data_prefix); -- 2.30.2