This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]