This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Attachment: gcov_strip.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]