PATCH: implement --coverage option

Andrew Pinski pinskia@physics.uc.edu
Wed Mar 2 05:14:00 GMT 2005


On Mar 1, 2005, at 11:59 PM, Ben Elliston wrote:

>
> 2005-03-01  Ben Elliston  <bje@au.ibm.com>
>
>         * gcc.c (option_map): Add --coverage.
>         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
>         (cc1_options): Pass -fprofile-arcs -ftest-coverage for 
> `coverage'.
>         * doc/invoke.texi (Debugging Options): Document --coverage.

Could you fix up darwin's LINK_COMMAND_SPEC to include --converage 
also, since
every time the normal LINK_COMMAND_SPEC changes I have to sync it?

You might also want to add the -lgcov code to djgpp's LINK_COMMAND_SPEC 
since
it looks like it is missing that too.

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list