From 76d40ef712b42b60f74087a6ecbd6ee163554d5b Mon Sep 17 00:00:00 2001
From: marxin <mliska@suse.cz>
Date: Mon, 26 Sep 2016 13:51:55 +0200
Subject: [PATCH] Fix documentation of gcov tool
gcc/ChangeLog:
2016-09-26 Martin Liska <mliska@suse.cz>
* doc/gcov.texi: Update program output of gcov tool.
---
gcc/doc/gcov.texi | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
@@ -367,8 +367,9 @@ is what you see when you use the basic @command{gcov} facility:
$ gcc -fprofile-arcs -ftest-coverage tmp.c
$ a.out
$ gcov tmp.c
-90.00% of 10 source lines executed in file tmp.c
-Creating tmp.c.gcov.
+File 'tmp.c'
+Lines executed:90.00% of 10
+Creating 'tmp.c.gcov'
@end smallexample
The file @file{tmp.c.gcov} contains output from @command{gcov}.
@@ -452,11 +453,12 @@ When you use the @option{-b} option, your output looks like this:
@smallexample
$ gcov -b tmp.c
-90.00% of 10 source lines executed in file tmp.c
-80.00% of 5 branches executed in file tmp.c
-80.00% of 5 branches taken at least once in file tmp.c
-50.00% of 2 calls executed in file tmp.c
-Creating tmp.c.gcov.
+File 'tmp.c'
+Lines executed:90.00% of 10
+Branches executed:80.00% of 5
+Taken at least once:80.00% of 5
+Calls executed:50.00% of 2
+Creating 'tmp.c.gcov'
@end smallexample
Here is a sample of a resulting @file{tmp.c.gcov} file:
--
2.9.2