2019-10-23 qing zhao <qing.zhao@oracle.com>
PR gcov-profile/91971
* coverage.c (coverage_init): Mangle the full path of filename when
filename is a absolute path.
From-SVN: r277344
+2019-10-23 qing zhao <qing.zhao@oracle.com>
+
+ PR gcov-profile/91971
+ * coverage.c (coverage_init): Mangle the full path of filename when
+ filename is a absolute path.
+
2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* config/msp430/msp430-protos.h (msp430_has_hwmult): New.
else
profile_data_prefix = getpwd ();
}
+ else
+ {
+ /* 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);