This is the mail archive of the 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: [3.4 patch] relocate profile data file

> This is a multi-part message in MIME format.
> --------------050500090302080900090107
> Content-Type: text/plain; charset=KOI8-R; format=flowed
> Content-Transfer-Encoding: 7bit
> Hi,
> Attached is the libgconv patch that allows .gcda files relocation when 
> running instrumented executable on system other than executable been 
> built on (cross-profiling). This is the solution of problem discussed a 
> while ago
> In particular the patch allows to:
> 1\ automatically create directory structure if does not exist
> 2\ relocate filename basing on value of two optional environment variables:
> 	GCOV_PREFIX contains the prefix to add to the absolute paths
> 	in the object file.
> 	GCOV_PREFIX_STRIP indicates the how many initial directory names
> 	to strip off the hardwired absolute paths. Default is 0.
> Tested on x86_64-redhat-linux. Is it Ok for 3.4 branch?

No. This first should go on the mainline.  Please write a patch for
the mainline.  Really since this is not a regression and an enhancement,
it __should not__ go on the release branches at all.

-- Pinski

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