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

Kai Tietz ktietz70@googlemail.com
Fri Oct 15 21:04:00 GMT 2010


Hello,

this patch de-couple the GCOV_PREFIX_STRIP and GCOV_PREFIX environment
variables in libgcov. By it is now possible to specify
GCOV_PREFIX_STRIP without GCOV_PREFIX. Additionally it corrects an
latent issue on native windows, as here prefix has to be absolute and
the stored file name is absolute, too. The can lead for this target to
double specified drive-letters in path.
If GCOV_PREFIX_STRIP is specified without GCOV_PREFIX, opened path
gets relative. Additional this patch allows the directory generation
for windows targets (like present for unix-targets).

ChangeLog

2010-10-15  Kai Tietz

        * libgcov.c (create_file_directory): Enable it for win32 case.
        (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.

Tested for x86_64-w64-mingw32, and for i686-pc-cygwin. Ok for apply?

Regards,
Kai

-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcov_strip.diff
Type: application/octet-stream
Size: 4556 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101015/e2e254b7/attachment.obj>


More information about the Gcc-patches mailing list