]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert mangling of names with -fprofile-generate=<dir>.
authorMartin Liska <mliska@suse.cz>
Thu, 6 Feb 2020 13:53:28 +0000 (14:53 +0100)
committerMartin Liska <mliska@suse.cz>
Thu, 6 Feb 2020 13:53:28 +0000 (14:53 +0100)
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
gcc/coverage.c

index 82079c763256a71f84ec7ba632042d3e8af75c00..bc9c372048861c98f495fcce209c72381f805335 100644 (file)
@@ -1,3 +1,11 @@
+2020-02-06  Martin Liska  <mliska@suse.cz>
+
+       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  <stam.markianos-wright@arm.com>
 
        PR target/93300
index f29ff640c437a9d53a1322d068775485eb6ef8b6..30ae84df90f950b3248eb91fdc4c58556ab8851f 100644 (file)
@@ -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);