OSDN Git Service

2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 8 Jan 2012 13:24:42 +0000 (13:24 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 8 Jan 2012 13:24:42 +0000 (13:24 +0000)
* doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
for -std=c++98 and -std=c++11 too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182991 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/doc/cpp.texi

index 9199907..0e93424 100644 (file)
@@ -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.
index 230d32b..658ab98 100644 (file)
@@ -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.