aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2011-11-13 10:26:23 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2011-11-13 10:26:23 +0000
commit1bec9caacb6926df6ee1a7a6b7ff08aa8bd493f4 (patch)
treedb8b1032f2c4a713653809c8dfd7585282f689ed /gcc/doc
parent2c6f792709071cd3492a10b79924674924f7fb1c (diff)
downloadgcc-1bec9caacb6926df6ee1a7a6b7ff08aa8bd493f4.zip
gcc-1bec9caacb6926df6ee1a7a6b7ff08aa8bd493f4.tar.gz
gcc-1bec9caacb6926df6ee1a7a6b7ff08aa8bd493f4.tar.bz2
gcov.c (source_prefix, [...]): New globals.
* gcov.c (source_prefix, source_length): New globals. (flag_relative_only): Likewise. (print_usage, options, process_args): Update. (generate_results): Use coverage.name, check flag_relative_only. Adjust messages. (find_source): Check source_prefix. (output_lines): Use coverage.name, adjust messages. * doc/gcov.texi (Invoking Gcov): Document new options. From-SVN: r181335
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/gcov.texi22
1 files changed, 20 insertions, 2 deletions
diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi
index d158b35..640d52e 100644
--- a/gcc/doc/gcov.texi
+++ b/gcc/doc/gcov.texi
@@ -124,13 +124,16 @@ gcov [@option{-v}|@option{--version}] [@option{-h}|@option{--help}]
[@option{-a}|@option{--all-blocks}]
[@option{-b}|@option{--branch-probabilities}]
[@option{-c}|@option{--branch-counts}]
+ [@option{-u}|@option{--unconditional-branches}]
[@option{-n}|@option{--no-output}]
[@option{-l}|@option{--long-file-names}]
[@option{-p}|@option{--preserve-paths}]
+ [@option{-r}|@option{--relative-only}]
[@option{-f}|@option{--function-summaries}]
- [@option{-o}|@option{--object-directory} @var{directory|file}] @var{sourcefiles}
- [@option{-u}|@option{--unconditional-branches}]
+ [@option{-o}|@option{--object-directory} @var{directory|file}]
+ [@option{-s}|@option{--source-prefix} @var{directory}]
[@option{-d}|@option{--display-progress}]
+ @var{files}
@c man end
@c man begin SEEALSO
gpl(7), gfdl(7), fsf-funding(7), gcc(1) and the Info entry for @file{gcc}.
@@ -193,6 +196,13 @@ removed and unremoveable @file{..}
components renamed to @samp{^}. This is useful if sourcefiles are in several
different directories.
+@item -r
+@itemx --relative-only
+Only output information about source files with a relative pathname
+(after source prefix elision). Absolute paths are usually system
+header files and coverage of any inline functions therein is normally
+uninteresting.
+
@item -f
@itemx --function-summaries
Output summaries for each function in addition to the file level summary.
@@ -207,6 +217,14 @@ is specified, the data files are in that directory and named after the
input file name, without its extension. If a file is specified here,
the data files are named after that file, without its extension.
+@item -s @var{directory}
+@itemx --source-prefix @var{directory}
+A prefix for source file names to remove when generating the output
+coverage files. This option is useful when building in a separate
+directory, and the pathname to the source directory is not wanted when
+determining the output file names. Note that this prefix detection is
+applied before determining whether the source file is absolute.
+
@item -u
@itemx --unconditional-branches
When branch probabilities are given, include those of unconditional branches.