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

Vincent Lefevre vincent+gcc@vinc17.org
Fri Mar 1 12:59:00 GMT 2019


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 <vincent@vinc17.net> - 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)



More information about the Gcc-help mailing list