This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Having the driver output environment variables when using -v -v?
- From: Mark Mitchell <mark at codesourcery dot com>
- To: François-Xavier Coudert <fxcoudert at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 30 Aug 2007 20:31:06 -0700
- Subject: Re: Having the driver output environment variables when using -v -v?
- References: <19c433eb0708230944v35c6a96ex261ddb3b12a9e0d3@mail.gmail.com>
François-Xavier Coudert wrote:
> Hi all,
>
> As part of a recent debugging, I modified gcc/gcc.c so that when -v is
> used twice, environment variables modification are output, such as:
> I thought it would be nice to have in mainline; what do you think?
I think it's a nice idea. I don't think you need to have the extra v;
you can just always do it:
Also, I suggest printing the environment variable assignment as a valid
Bourne shell assignment:
COLLECT_GCC="-v -mtune=i386"
Then, many readers will be able to just paste that into their shell.
And, other users (say C shell) can make an easy transformation.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713