Skip to content

Commit 3ecf2a7

Browse files
committed
geninfo: preserve-paths makes gcov to fail for long pathnames
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 <[email protected]>
1 parent 0433563 commit 3ecf2a7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

bin/geninfo

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ push(@gcov_options, "-c") if ($gcov_caps->{'branch-counts'} &&
468468
$br_coverage);
469469
push(@gcov_options, "-a") if ($gcov_caps->{'all-blocks'} &&
470470
$opt_gcov_all_blocks && $br_coverage);
471-
push(@gcov_options, "-p") if ($gcov_caps->{'preserve-paths'});
472471

473472
# Determine compatibility modes
474473
parse_compat_modes($opt_compat);
@@ -3772,7 +3771,6 @@ sub get_gcov_capabilities()
37723771
'l' => 'long-file-names',
37733772
'n' => 'no-output',
37743773
'o' => 'object-directory',
3775-
'p' => 'preserve-paths',
37763774
'u' => 'unconditional-branches',
37773775
'v' => 'version',
37783776
);

0 commit comments

Comments
 (0)