aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-06-09 13:14:57 +0200
committerMartin Liska <mliska@suse.cz>2020-06-09 13:16:09 +0200
commit452283bd060eb9bae41199b4b5e7266155d40e12 (patch)
treea3ef7e618d73a89fb32cc278491faec4d5d25351 /gcc/doc
parent862b9b225fba6cf3c63234206f2dbc47f1ab5350 (diff)
downloadgcc-452283bd060eb9bae41199b4b5e7266155d40e12.zip
gcc-452283bd060eb9bae41199b4b5e7266155d40e12.tar.gz
gcc-452283bd060eb9bae41199b4b5e7266155d40e12.tar.bz2
gcov: improve --coverage small example
Pushed to master. gcc/ChangeLog: PR gcov-profile/95365 * doc/gcov.texi: Compile and link one example in 2 steps.
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/gcov.texi3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi
index 61250c9..22e42da 100644
--- a/gcc/doc/gcov.texi
+++ b/gcc/doc/gcov.texi
@@ -528,7 +528,8 @@ for each line. For example, if your program is called @file{tmp.cpp}, this
is what you see when you use the basic @command{gcov} facility:
@smallexample
-$ g++ --coverage tmp.cpp
+$ g++ --coverage tmp.cpp -c
+$ g++ --coverage tmp.o
$ a.out
$ gcov tmp.cpp -m
File 'tmp.cpp'