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: [LTO][PATCH] Delete temporary ltrans output files


On Tue, Dec 9, 2008 at 10:36, Simon Baldwin <simonb@google.com> wrote:

> Could that single flag not simply just set a global environment variable at
> the outer level, though, so that every program involved in the compilation
> could check it uniformly?

The huge problem with environment variables is that it makes
reproducibility harder, the command line does not have all the
required context.  This is already a pain when debugging certain
aspects of collect2 that want to work with some environment variables
set.

Each segment of the pipeline should be reproducible with just the
input files and the command line flags.

Environment variables also have the nasty habit of staying hidden in
one's environment, producing surprising results.  I really dislike
environment variables.  With passion :)


Diego.


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