From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26749 invoked by alias); 2 Jun 2009 09:38:22 -0000 Received: (qmail 26741 invoked by uid 22791); 2 Jun 2009 09:38:21 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Jun 2009 09:38:17 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n529cF03022868; Tue, 2 Jun 2009 05:38:15 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n529cE0O011779; Tue, 2 Jun 2009 05:38:14 -0400 Received: from [10.33.6.24] (vpn-6-24.fab.redhat.com [10.33.6.24]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n529cCmg027954; Tue, 2 Jun 2009 05:38:13 -0400 Message-ID: <4A24F304.5040901@redhat.com> Date: Tue, 02 Jun 2009 09:38:00 -0000 From: Nick Clifton User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Ian Lance Taylor CC: gcc@gcc.gnu.org Subject: Re: gcc --help for options which are not warnings or optimizations References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-06/txt/msg00020.txt.bz2 Hi Ian, > Nick, how is gcc --help supposed to work for options which are neither > warnings nor optimizations? For example, -fstack-protector. Is there a > --help option which will display it? Yes - but only the generic "--help --verbose" rather than a more qualified version. My original goal with the qualifiers for --help was to enable to automatic collection of all optimization options available in a particular version of gcc. These would then be plugged in to a script to try out various different combinations of those options in the hopes of find the optimum selection. I suppose we could add another qualifier along the lines of "--help=not-otherwise-shown" but that seems rather klunky. Cheers Nick