Bug 84137 - Typo in gcov online documentation
Summary: Typo in gcov online documentation
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: gcov-profile (show other bugs)
Version: 7.2.1
: P3 normal
Target Milestone: ---
Assignee: Martin Liška
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-30 19:11 UTC by Peter Klotz
Modified: 2018-03-07 09:51 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work: 8.0
Known to fail: 6.4.0, 7.3.0
Last reconfirmed: 2018-02-05 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Klotz 2018-01-30 19:11:08 UTC
There is a typo on this page of the gcov online documentation:

  https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html

It states:

"Unexecuted lines are marked ‘#####’ or ‘====’, depending on whether..."


It should be "=====" (five consecutive equal signs instead of four).

This simple test program shows that 5 is correct:

----------------------
int main()
{
    int i=0;
    try {
        if (i==4)
            throw 7;
    }
    catch (...) {
        i=5;
    }
    return 0;
}
----------------------

g++ -Wall -Wextra -g -fprofile-arcs -ftest-coverage coverage.cpp -o coverage
gcov coverage.gcda

----------------------
        -:    0:Source:coverage.cpp
        -:    0:Graph:coverage.gcno
        -:    0:Data:coverage.gcda
        -:    0:Runs:1
        -:    0:Programs:1
        1:    1:int main()
        -:    2:{
        1:    3:    int i=0;
        -:    4:    try {
        1:    5:        if (i==4)
    #####:    6:            throw 7;
        -:    7:    }
    =====:    8:    catch (...) {
    =====:    9:        i=5;
        -:   10:    }
        1:   11:    return 0;
        -:   12:}
----------------------
Comment 1 Martin Liška 2018-02-05 09:05:20 UTC
Thanks for the report, I'll fix it soon.
Comment 2 Martin Liška 2018-02-05 09:59:48 UTC
Author: marxin
Date: Mon Feb  5 09:59:16 2018
New Revision: 257384

URL: https://gcc.gnu.org/viewcvs?rev=257384&root=gcc&view=rev
Log:
Fix GCOV documentation (PR gcov-profile/84137).

2018-02-05  Martin Liska  <mliska@suse.cz>

	PR gcov-profile/84137
	* doc/gcov.texi: Fix typo in documentation.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/doc/gcov.texi
Comment 3 Martin Liška 2018-02-05 10:00:00 UTC
Fixed on trunk, queued for backports.
Comment 4 Martin Liška 2018-03-06 20:07:30 UTC
Author: marxin
Date: Tue Mar  6 20:06:56 2018
New Revision: 258297

URL: https://gcc.gnu.org/viewcvs?rev=258297&root=gcc&view=rev
Log:
Backport r257384

2018-03-06  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2018-02-05  Martin Liska  <mliska@suse.cz>

	PR gcov-profile/84137
	* doc/gcov.texi: Fix typo in documentation.

Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/doc/gcov.texi
Comment 5 Martin Liška 2018-03-07 09:49:45 UTC
Author: marxin
Date: Wed Mar  7 09:48:44 2018
New Revision: 258330

URL: https://gcc.gnu.org/viewcvs?rev=258330&root=gcc&view=rev
Log:
Backport r257384

2018-03-07  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2018-02-05  Martin Liska  <mliska@suse.cz>

	PR gcov-profile/84137
	* doc/gcov.texi: Fix typo in documentation.

Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/doc/gcov.texi
Comment 6 Martin Liška 2018-03-07 09:51:06 UTC
Should be fixed on all active branches.