[4.1 patch] relocate profile data file
Grigory Zagorodnev
grigory_zagorodnev@linux.intel.com
Tue May 10 09:23:00 GMT 2005
Nathan,
Thank you very much for your time and valuable notes. Here is the final
(wish so) patch and I need someone with cvs write permissions to
proceed. Would you commit this patch for me, please?
This update includes:
- comments for create_file_directory and gcov_version
- disallowed non-ablsolute GCOV_PREFIX
- info pages updated with absolute path requirement
- removed some extra checks
Plus one comment:
>> + char *tmp = getenv("GCOV_PREFIX_STRIP");
>> + if (tmp)
>
> doesn't this need to be 'tmp && *tmp'?
No. Don't think so. Atoi will return zero on empty string and this is
what expected in case of empty GCOV_PREFIX_STRIP.
- Grigory
2005-05-11 Grigory Zagorodnev <grigory.zagorodnev@intel.com>
H.J. Lu <hongjiu.lu@intel.com
* libgcov.c (create_file_directory): New function. Create
directory for the given file name.
(gcov_max_filename): New static var. Keeps size
of the longest file name.
(gcov_exit): Always try to create directory for output
file. Relocate each filename basing on environment vars.
(__gcov_init): remember the longest file name.
* tsystem.h: include filenames.h to get IS_DIR_SEPARATOR
* doc/gcov.texi (Cross-profiling): New node documenting
cross-profiling management.
* doc/invoke.texi (-fprofile-arcs): xref to cross-profiling.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libgcov.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050510/ad91262f/attachment.ksh>
More information about the Gcc-patches
mailing list