aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2008-01-31 18:40:58 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2008-01-31 18:40:58 +0000
commit53e3ebbe85e38d48ea4fb8b69f252d85b88f7731 (patch)
treecbea9a73a840e66b05e0f95b20a16c90f439ff0a
parent34e165b0e088bdb1a1a73b039987c58e276b0ff0 (diff)
invoke.texi (-ansi): Mention explicitly corresponding -std= options.
2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org> * doc/invoke.texi (-ansi): Mention explicitly corresponding -std= options. Minor fixes. (-std): Move reference to standards closer to where language standards are first mentioned. From-SVN: r131981
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/doc/invoke.texi19
2 files changed, 16 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e969fb1169d..88d895c018c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
+
+ * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
+ options. Minor fixes.
+ (-std): Move reference to standards closer to where language
+ standards are first mentioned.
+
2008-01-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR 32102
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 7585d421fae..0b8d38ff7c0 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -1131,8 +1131,8 @@ accepts:
@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}.
This turns off certain features of GCC that are incompatible with ISO
C90 (when compiling C code), or of standard C++ (when compiling C++ code),
@@ -1161,17 +1161,19 @@ from declaring certain functions or defining certain macros that the
ISO standard doesn't call for; this is to avoid interfering with any
programs that might use these names for other things.
-Functions which would normally be built in but do not have semantics
+Functions that would normally be built in but do not have semantics
defined by ISO C (such as @code{alloca} and @code{ffs}) are not built-in
-functions with @option{-ansi} is used. @xref{Other Builtins,,Other
+functions when @option{-ansi} is used. @xref{Other Builtins,,Other
built-in functions provided by GCC}, for details of the functions
affected.
@item -std=
@opindex std
-Determine the language standard. This option is currently only
-supported when compiling C or C++. A value for this option must be
-provided; possible values are
+Determine the language standard. @xref{Standards,,Language Standards
+Supported by GCC}, for details of these standard versions. This option
+is currently only supported when compiling C or C++.
+
+A value for this option must be provided; possible values are
@table @samp
@item c89
@@ -1215,9 +1217,6 @@ effects as @option{-ansi}, except that features that were not in ISO C90
but are in the specified version (for example, @samp{//} comments and
the @code{inline} keyword in ISO C99) are not disabled.
-@xref{Standards,,Language Standards Supported by GCC}, for details of
-these standard versions.
-
@item -fgnu89-inline
@opindex fgnu89-inline
The option @option{-fgnu89-inline} tells GCC to use the traditional