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: Having the driver output environment variables when using -v -v?


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


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