This is the mail archive of the gcc@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: Is there a way to specify profile data file directory?


On Mon, Apr 25, 2005 at 08:47:50AM +0100, Nathan Sidwell wrote:
> H. J. Lu wrote:
> 
> >
> >Yes, that will work. Is anyone working on this? If not, we can take a
> >look.
> 
> I have not heard anything back from the original enquirer/volunteer over
> a month ago.  I suggest GCOV_PREFIX as the variable name and simply
> concatenate it to the absolute paths in the object file.  I'm not sure
> about whether mkdir calls should be automatically performed, probably
> yes.

make_class_file_name in gcc/java/jcf-write.c creates a directory if it
doesn't exist. Should we create a new file for it in gcc or in
libiberty?

> 
> You might want or need to get cleverer and have some way of indicating
> how many initial directory names to strip off the hardwired absolute
> paths.  Maybe this should be done by string matching or level counting.
> Perhaps GCOV_PREFIX_STRIP would be a suitable name.

Level counting sounds good to me. We can have GCOV_PREFIX_STRIP=N
and make N == 0 as the default.

> 
> Use alloca rather than malloc, if at all possible please.  Thanks for
> taking this up.
> 



H.J.


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