[LLVMdev] [cfe-dev] GCC compatibility code coverage issue .
Mohamed Galal
mohamed.g.ebrahim at gmail.com
Tue Apr 28 06:46:40 PDT 2015
I had the same problem. And I've fixed it by using -fprofile-arcs
-ftest-coverage instead of --coverage flag.
https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html
On Tue, Apr 28, 2015 at 6:52 AM, Umesh Kalappa <umesh.kalappa0 at gmail.com>
wrote:
> Hi All,
>
> We trying to use clang+llvm to generate the gcc coverage format as
>
> clang version 3.6.0
>
> $clang --coverage -Xclang -coverage-cfg-checksum -Xclang
> -coverage-no-function-names-in-data -Xclang -coverage-version='407*'
> test.c
>
> $a.out
>
> $llvm-cov gcov test.gcda
>
> Unexpected version: *704.
> Invalid .gcno File!
>
> Debugging the above cause ,But any hints from experts here ,will help a
> lot .
>
> Appreciate your time ,Thank you
> ~Umesh
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150428/bfce1153/attachment.html>
More information about the llvm-dev
mailing list