From: Thomas Rast Date: Mon, 16 Feb 2009 11:09:28 GMT Subject: Re: [PATCH 1/8] Support coverage testing with GCC/gcov Message-ID: <200902161209.34188.trast@student.ethz.ch> In-Reply-To: Matthieu Moy wrote: > detail: > > Thomas Rast writes: > > > With gcc's --coverage option, we can perform automatic coverage data > > I don't think gcc has a --coverage ... Mine does: --coverage This option is used to compile and link code instrumented for coverage analysis. The option is a synonym for -fprofile-arcs -ftest-coverage (when compiling) and -lgcov (when linking). See the documentation for those options for more details. > > +COVERAGE_CFLAGS = $(CFLAGS) -O0 -ftest-coverage -fprofile-arcs > > +COVERAGE_LDFLAGS = $(CFLAGS) -O0 -lgcov > > ... and this is not the one you are using anyway. Indeed, I guess the log message is somewhat misleading. -- Thomas Rast trast@{inf,student}.ethz.ch