From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30587 invoked by alias); 31 Aug 2007 03:31:20 -0000 Received: (qmail 30574 invoked by uid 22791); 31 Aug 2007 03:31:19 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 31 Aug 2007 03:31:17 +0000 Received: (qmail 4268 invoked from network); 31 Aug 2007 03:31:15 -0000 Received: from unknown (HELO ?192.168.0.3?) (mitchell@127.0.0.2) by mail.codesourcery.com with ESMTPA; 31 Aug 2007 03:31:15 -0000 Message-ID: <46D78B7A.2000807@codesourcery.com> Date: Fri, 31 Aug 2007 03:39:00 -0000 From: Mark Mitchell User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Fran=E7ois-Xavier_Coudert?= CC: gcc-patches Subject: Re: Having the driver output environment variables when using -v -v? References: <19c433eb0708230944v35c6a96ex261ddb3b12a9e0d3@mail.gmail.com> In-Reply-To: <19c433eb0708230944v35c6a96ex261ddb3b12a9e0d3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg02244.txt.bz2 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