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: Make lang_specific_driver use cl_decoded_option structures


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


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