aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely.gcc@gmail.com>2012-01-08 13:24:42 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2012-01-08 13:24:42 +0000
commite478624f6c8d5ff2d43e5159d4435cbd75e4d5a7 (patch)
tree2b08c23bd335a02ec50eaa3b6b75475dac18c95d
parentb78384e048b3be5ca6960d6cb8d660dc4c88fad7 (diff)
downloadgcc-e478624f6c8d5ff2d43e5159d4435cbd75e4d5a7.zip
gcc-e478624f6c8d5ff2d43e5159d4435cbd75e4d5a7.tar.gz
gcc-e478624f6c8d5ff2d43e5159d4435cbd75e4d5a7.tar.bz2
cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined for -std=c++98 and -std=c++11 too.
2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com> * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined for -std=c++98 and -std=c++11 too. From-SVN: r182991
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/cpp.texi4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9199907..0e93424 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
+
+ * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
+ for -std=c++98 and -std=c++11 too.
+
2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
* cfgloop.c (cancel_loop): Add free() of bbs array.
diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi
index 230d32b..658ab98 100644
--- a/gcc/doc/cpp.texi
+++ b/gcc/doc/cpp.texi
@@ -2020,8 +2020,8 @@ testing @code{@w{(__GNUC__ && __cplusplus)}}.
@item __STRICT_ANSI__
GCC defines this macro if and only if the @option{-ansi} switch, or a
-@option{-std} switch specifying strict conformance to some version of ISO C,
-was specified when GCC was invoked. It is defined to @samp{1}.
+@option{-std} switch specifying strict conformance to some version of ISO C
+or ISO C++, was specified when GCC was invoked. It is defined to @samp{1}.
This macro exists primarily to direct GNU libc's header files to
restrict their definitions to the minimal set found in the 1989 C
standard.