This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [distcc] using distcc to speed up gcc bootstraps
On Aug 23, 2002, Zack Weinberg <zack@codesourcery.com> wrote:
> I do not fully understand the problem; what's the executive summary?
Debugging output routines use getpwd() to emit the `current directory'
bit. So, if you preprocess a program in one directory, take the
preprocessed output elsewhere, and run the compiler on the
preprocessed file, you get different debugging info depending on
the cwd at the time of the translation to assembly.
If instead we included the cwd of the preprocessor at the time it
started the translation, the compilation result would be the same
regardless of the cwd of the execution of cc1.
My reasoning is that, if we handle things like __DATE__ and __TIME__
in the preprocessor (that could change should they be deferred to the
compiler proper), so should the cwd.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer