diff mbox series

gcov: improve --coverage small example

Message ID d7655473-da37-ff1d-3d19-adcd9724281f@suse.cz
State New
Headers show
Series gcov: improve --coverage small example | expand

Commit Message

Martin Liška June 9, 2020, 11:16 a.m. UTC
Pushed to master.

gcc/ChangeLog:

	PR gcov-profile/95365
	* doc/gcov.texi: Compile and link one example in 2 steps.
---
  gcc/doc/gcov.texi | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi
index 61250c9407e..22e42da2ea6 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'