GCC manual and --coverage vs -fprofile-arcs -ftest-coverage

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

GCC manual and --coverage vs -fprofile-arcs -ftest-coverage

Vincent Lefevre-3
As documented, --coverage is a synonym for -fprofile-arcs -ftest-coverage
(when compiling).

Then why does the GCC manual use "-fprofile-arcs -ftest-coverage"
instead of the simpler "--coverage"?

See, e.g.
  https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html
  https://gcc.gnu.org/onlinedocs/gcc/Gcov-and-Optimization.html

--
Vincent Lefèvre <[hidden email]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Reply | Threaded
Open this post in threaded view
|

Re: GCC manual and --coverage vs -fprofile-arcs -ftest-coverage

Segher Boessenkool
On Fri, Mar 01, 2019 at 01:59:26PM +0100, Vincent Lefevre wrote:
> As documented, --coverage is a synonym for -fprofile-arcs -ftest-coverage
> (when compiling).
>
> Then why does the GCC manual use "-fprofile-arcs -ftest-coverage"
> instead of the simpler "--coverage"?

Probably because no one sent a patch for that / sent suggestions to change
this / brought it up some other way?

Likely this manual was written before the -coverage option existed, to
answer your question.

I couldn't find it btw, and that's because...

> See, e.g.
>   https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html
>   https://gcc.gnu.org/onlinedocs/gcc/Gcov-and-Optimization.html

... this is about the Gcov manual, not the GCC manual.

Patches are welcome (at gcc-patches@), or you can discuss it on gcc@, or
report a suggested improvement in bugzilla; it's off topic for this list.


Segher
Reply | Threaded
Open this post in threaded view
|

Re: GCC manual and --coverage vs -fprofile-arcs -ftest-coverage

Vincent Lefevre-3
On 2019-03-02 16:40:57 -0600, Segher Boessenkool wrote:
> On Fri, Mar 01, 2019 at 01:59:26PM +0100, Vincent Lefevre wrote:
> > See, e.g.
> >   https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html
> >   https://gcc.gnu.org/onlinedocs/gcc/Gcov-and-Optimization.html
>
> ... this is about the Gcov manual, not the GCC manual.

But the gcov manual is part of the GCC manual (this is Section 10).

> Patches are welcome (at gcc-patches@), or you can discuss it on gcc@, or
> report a suggested improvement in bugzilla; it's off topic for this list.

I've suggested the replacement in Bugzilla:

  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89577

--
Vincent Lefèvre <[hidden email]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Reply | Threaded
Open this post in threaded view
|

Re: GCC manual and --coverage vs -fprofile-arcs -ftest-coverage

Segher Boessenkool
On Mon, Mar 04, 2019 at 02:05:50PM +0100, Vincent Lefevre wrote:
> On 2019-03-02 16:40:57 -0600, Segher Boessenkool wrote:
> > On Fri, Mar 01, 2019 at 01:59:26PM +0100, Vincent Lefevre wrote:
> > > See, e.g.
> > >   https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html
> > >   https://gcc.gnu.org/onlinedocs/gcc/Gcov-and-Optimization.html
> >
> > ... this is about the Gcov manual, not the GCC manual.
>
> But the gcov manual is part of the GCC manual (this is Section 10).

I actually checked that, but I probably fat-fingered my search command.
Sorry.

> > Patches are welcome (at gcc-patches@), or you can discuss it on gcc@, or
> > report a suggested improvement in bugzilla; it's off topic for this list.
>
> I've suggested the replacement in Bugzilla:
>
>   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89577

Thanks!


Segher