[patch libgcov]: Fix libgcov for DOS paths and allow GCOV_PREFIX_STRIP without GCOV_PREFIX

Richard Henderson rth@redhat.com
Sun Oct 17 19:44:00 GMT 2010


> +      /* 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~



More information about the Gcc-patches mailing list