This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Make lang_specific_driver use cl_decoded_option structures
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Fri, 20 Aug 2010 11:41:51 +0000 (UTC)
- Subject: Re: Make lang_specific_driver use cl_decoded_option structures
- References: <Pine.LNX.4.64.1008182057100.3690@digraph.polyomino.org.uk> <4C6E1E65.3020206@net-b.de>
On Fri, 20 Aug 2010, Tobias Burnus wrote:
> > * The Fortran driver had a comment saying "Also, if -v is specified,
> > but no other options that do anything special (allowing -V version,
> > etc.), remember to add special stuff to make gcc command actually
> > invoke all the different phases of the compilation process so all
> > the version numbers can be seen.". Apart from the reference to -V,
> > there is nothing special in the Fortran code at all regarding the
> > lack of other options with -v.
>
> Could you update the comment?
The patch does update the comment; sorry, that wasn't clear in my
description of the issue. That seemed better than just removing the -V
mention along with the -V handling (and removing the subsequent paragraph
about missing arguments, now caught elsewhere) and leaving the rest of the
comment unchanged.
/* First pass through arglist.
If -nostdlib or a "turn-off-linking" option is anywhere in the
command line, don't do any library-option processing (except
- relating to -x). Also, if -v is specified, but no other options
- that do anything special (allowing -V version, etc.), remember
- to add special stuff to make gcc command actually invoke all
- the different phases of the compilation process so all the version
- numbers can be seen.
-
- Also, here is where all problems with missing arguments to options
- are caught. If this loop is exited normally, it means all options
- have the appropriate number of arguments as far as the rest of this
- program is concerned. */
+ relating to -x). */
--
Joseph S. Myers
joseph@codesourcery.com