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@xxxxxxxxxx> - 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)