This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch libgcov]: Fix libgcov for DOS paths and allow GCOV_PREFIX_STRIP without GCOV_PREFIX
> + /* Avoid to add multiple drive letters into combined path. */
> + if (prefix_length != 0 && IS_ABSOLUTE_PATH(fname) && fname[1] == ':')
> + fname += 2;
This bit needs to be written as HAS_DRIVE_SPEC(fname).
> + strcpy (gi_filename_up, "/");
> + strcat (gi_filename_up, fname);
*gi_filename_up = '/';
strcpy (gi_filename_up + 1, fname);
Ok with those changes.
r~