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: PR/15448: add a compiler timestamp to PCH files


On Wed, Feb 16, 2005 at 12:51:02PM +0100, Paolo Bonzini wrote:
> The executable path can be used on Linux to find the compiler timestamp 
> (see the attached patch).  A similar test is used in libjava, but I 
> enhanced it by supporting the cache variable even in the 
> cross-compilation case (Canadian in gcc's case), so that the test can be 
> overridden.

Gawd, no.  make_relative_prefix in libiberty already knows how to find
a binary given argv[0]; let's use that algorithm, instead of messing
with /proc.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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