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: [DOC] clearer description of -std= (try 2)


Hello Manuel,

Manuel LÃpez-IbÃÃez <lopezibanez <at> gmail.com> writes:
>
> * Clarify that -ansi is not more than an alias of -std=c89 or
> -std=c++98. Thus, the explanations of -std= apply to -ansi (and, to
> some extent,  the other way around).

In your patch you mention that gnu89 is the default now but gnu99 will
become the default eventually.  Will -ansi then switch to mean c99?
If this has been decided already, might as well present it that way,
or at least give the reader hope that it might happen.  So I suggest
adding a sentence up front:

  Switch from the GNU dialect used to its base standard.  In C mode, this
  is equivalent to @samp{-std=c89}. In C++ mode, it is equivalent to
  @samp{-std=c++98}.

> @@ -1300,8 +1300,8 @@
>  @cindex ISO support
>  @item -ansi
>  @opindex ansi
> -In C mode, support all ISO C90 programs.  In C++ mode,
> -remove GNU extensions that conflict with ISO C++.
> +In C mode, this is equivalent to @samp{-std=c89}. In C++ mode, it is
> +equivalent to @samp{-std=c++98}.
[...]
>  @item gnu99
>  @itemx gnu9x
> -ISO C99 plus GNU extensions.  When ISO C99 is fully implemented in GCC,
> +GNU dialect of ISO C99.  When ISO C99 is fully implemented in GCC,
>  this will become the default.  The name @samp{gnu9x} is deprecated.

Cheers,
Ralf


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