[PATCH] enable-coverage build

Nathan Sidwell nathan@codesourcery.com
Wed Jul 9 11:48:00 GMT 2003


Nathan Sidwell wrote:
> Hi,
> an enable-coverage build suffers from some of the issues of a canadian
> cross. Namely object files destined for the compiler are compiled and
> linked with -ftest-coverage -fprofile-arcs, whereas those for the build
> are not (actually, I don't care particularly which they are, but ...).
> during stage1, for build=host, we'll use the system gcc compiler for
> those latter files, but give it options that only the compiler under
> construction understands. Also, there are different link commands for
> the former and the latter, such that the latter fail to link with libgcov.
Nathaniel pointed out the -o is not approved autoconfiscation. I've installed
this one, which uses ||

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
          The voices in my head said this was stupid too
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: coverage-build.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030709/dcc8e4f9/attachment.ksh>


More information about the Gcc-patches mailing list