Re: GCC manual and --coverage vs -fprofile-arcs -ftest-coverage
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 actually checked that, but I probably fat-fingered my search command.
> > 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: