This is the mail archive of the
mailing list for the GCC project.
Re: [3.4 patch] relocate profile data file
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: grigory_zagorodnev at linux dot intel dot com (Grigory Zagorodnev)
- Cc: gcc-patches at gcc dot gnu dot org, nathan at codesourcery dot com, hjl at lucon dot org
- Date: Wed, 4 May 2005 16:41:59 -0400 (EDT)
- Subject: Re: [3.4 patch] relocate profile data file
> This is a multi-part message in MIME format.
> Content-Type: text/plain; charset=KOI8-R; format=flowed
> Content-Transfer-Encoding: 7bit
> 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 http://gcc.gnu.org/ml/gcc/2005-04/msg01290.html.
> 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.