diff options
author | Martin Liska <mliska@suse.cz> | 2016-08-16 16:14:18 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-08-16 14:14:18 +0000 |
commit | 75cc66f26344aa95c916ba580191e3d17fa817c2 (patch) | |
tree | d89cf48000e2f957e9dcb0c5251868de4f23fea3 /gcc/doc/gcov.texi | |
parent | 3c556bc4e9eb31561f246e8e2944b05a95cc1a4a (diff) | |
download | gcc-75cc66f26344aa95c916ba580191e3d17fa817c2.zip gcc-75cc66f26344aa95c916ba580191e3d17fa817c2.tar.gz gcc-75cc66f26344aa95c916ba580191e3d17fa817c2.tar.bz2 |
gcov: add new option (--hash-filenames) (PR
PR gcov-profile/36412
* doc/gcov.texi: Document --hash-filenames(-x).
* gcov.c (print_usage): Add the option.
(process_args): Process the option, sort options alphabetically.
(md5sum_to_hex): New function.
(make_gcov_file_name): Do the md5sum and append it to a
filename.
From-SVN: r239503
Diffstat (limited to 'gcc/doc/gcov.texi')
-rw-r--r-- | gcc/doc/gcov.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi index df58df8..a0a7af7 100644 --- a/gcc/doc/gcov.texi +++ b/gcc/doc/gcov.texi @@ -133,6 +133,7 @@ gcov [@option{-v}|@option{--version}] [@option{-h}|@option{--help}] [@option{-r}|@option{--relative-only}] [@option{-s}|@option{--source-prefix} @var{directory}] [@option{-u}|@option{--unconditional-branches}] + [@option{-x}|@option{--hash-filenames}] @var{files} @c man end @c man begin SEEALSO @@ -278,6 +279,16 @@ branch:28,nottaken Display demangled function names in output. The default is to show mangled function names. +@item -x +@itemx --hash-filenames +By default, gcov uses the full pathname of the source files to to create +an output filename. This can lead to long filenames that can overflow +filesystem limits. This option creates names of the form +@file{@var{source-file}##@var{md5}.gcov}, +where the @var{source-file} component is the final filename part and +the @var{md5} component is calculated from the full mangled name that +would have been used otherwise. + @end table @command{gcov} should be run with the current directory the same as that |