Skip to content

Commit

Permalink
geninfo: preserve-paths makes gcov to fail for long pathnames
Browse files Browse the repository at this point in the history
geninfo uses '--preserve-paths' gcov option whenever gcov supports it, this
forces gcov to use a whole pathname as a filename for .gcov files. So in cases
of quite large pathnames, gcov isn't able to create .gcov files and hence
geninfo can't get any data. The fix removes '--preserve-paths'.

Signed-off-by: Igor Ignatev <igor.v.ignatiev@gmail.com>
  • Loading branch information
iignatev committed Feb 6, 2019
1 parent 0433563 commit 3ecf2a7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bin/geninfo
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@ push(@gcov_options, "-c") if ($gcov_caps->{'branch-counts'} &&
$br_coverage);
push(@gcov_options, "-a") if ($gcov_caps->{'all-blocks'} &&
$opt_gcov_all_blocks && $br_coverage);
push(@gcov_options, "-p") if ($gcov_caps->{'preserve-paths'});

# Determine compatibility modes
parse_compat_modes($opt_compat);
Expand Down Expand Up @@ -3772,7 +3771,6 @@ sub get_gcov_capabilities()
'l' => 'long-file-names',
'n' => 'no-output',
'o' => 'object-directory',
'p' => 'preserve-paths',
'u' => 'unconditional-branches',
'v' => 'version',
);
Expand Down

0 comments on commit 3ecf2a7

Please sign in to comment.