Amin
Amin

Reputation: 251

How to compute the test coverage of gcc itself?

I am building gcc from source code. What changes to Makefile should I make to be able to get the coverage of GCC when it compiles a source code?

Note that I want the coverage in the GCC itself.

Upvotes: 0

Views: 196

Answers (1)

Amin
Amin

Reputation: 251

Before building gcc from source code, use --enable-coverage for the configuration. i.e. ./configure --enable-coverage.

Upvotes: 1

Related Questions