This is the mail archive of the
mailing list for the GCC project.
Re: [4.1 patch] relocate profile data file
Grigory Zagorodnev wrote:
Nathan Sidwell wrote:
> just pass full the filename in. When called from gcov_init, just use
> the hardwired path -- afterall we're not looking at the disk at that
Ok! That makes the live easier.
> How about remembering the longest file name in gcov_init,
> and then having a single alloca for that + strlen(prefix) in gcov_exit?
Yes, this may fit. But we won't eliminate global variables - still need
one for the longest file name. Do you mind?
that seems a sensible way to proceed
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
firstname.lastname@example.org :: http://www.planetfall.pwp.blueyonder.co.uk