Commit e03ea4ad by Jason Merrill

* doc/invoke.texi: Update for -std=c++11.

From-SVN: r180726
parent 5a9fbcf1
...@@ -235,7 +235,7 @@ Objective-C and Objective-C++ Dialects}. ...@@ -235,7 +235,7 @@ Objective-C and Objective-C++ Dialects}.
-pedantic-errors @gol -pedantic-errors @gol
-w -Wextra -Wall -Waddress -Waggregate-return -Warray-bounds @gol -w -Wextra -Wall -Waddress -Waggregate-return -Warray-bounds @gol
-Wno-attributes -Wno-builtin-macro-redefined @gol -Wno-attributes -Wno-builtin-macro-redefined @gol
-Wc++-compat -Wc++0x-compat -Wcast-align -Wcast-qual @gol -Wc++-compat -Wc++11-compat -Wcast-align -Wcast-qual @gol
-Wchar-subscripts -Wclobbered -Wcomment @gol -Wchar-subscripts -Wclobbered -Wcomment @gol
-Wconversion -Wcoverage-mismatch -Wno-cpp -Wno-deprecated @gol -Wconversion -Wcoverage-mismatch -Wno-cpp -Wno-deprecated @gol
-Wno-deprecated-declarations -Wdisabled-optimization @gol -Wno-deprecated-declarations -Wdisabled-optimization @gol
...@@ -1574,16 +1574,13 @@ C++ code. ...@@ -1574,16 +1574,13 @@ C++ code.
GNU dialect of @option{-std=c++98}. This is the default for GNU dialect of @option{-std=c++98}. This is the default for
C++ code. C++ code.
@item c++0x @item c++11
The working draft of the upcoming ISO C++0x standard. This option The 2011 ISO C++ standard plus amendments. Support for C++11 is still
enables experimental features that are likely to be included in experimental, and may change in incompatible ways in future releases.
C++0x. The working draft is constantly changing, and any feature that is
enabled by this flag may be removed from future versions of GCC if it is
not part of the C++0x standard.
@item gnu++0x @item gnu++11
GNU dialect of @option{-std=c++0x}. This option enables GNU dialect of @option{-std=c++11}. Support for C++11 is still
experimental features that may be removed in future versions of GCC. experimental, and may change in incompatible ways in future releases.
@end table @end table
@item -fgnu89-inline @item -fgnu89-inline
...@@ -1870,7 +1867,7 @@ Version 5 corrects the mangling of attribute const/volatile on ...@@ -1870,7 +1867,7 @@ Version 5 corrects the mangling of attribute const/volatile on
function pointer types, decltype of a plain decl, and use of a function pointer types, decltype of a plain decl, and use of a
function parameter in the declaration of another parameter. function parameter in the declaration of another parameter.
Version 6 corrects the promotion behavior of C++0x scoped enums. Version 6 corrects the promotion behavior of C++11 scoped enums.
See also @option{-Wabi}. See also @option{-Wabi}.
...@@ -1905,7 +1902,7 @@ been added for putting variables into BSS without making them common. ...@@ -1905,7 +1902,7 @@ been added for putting variables into BSS without making them common.
@item -fconstexpr-depth=@var{n} @item -fconstexpr-depth=@var{n}
@opindex fconstexpr-depth @opindex fconstexpr-depth
Set the maximum nested evaluation depth for C++0x constexpr functions Set the maximum nested evaluation depth for C++11 constexpr functions
to @var{n}. A limit is needed to detect endless recursion during to @var{n}. A limit is needed to detect endless recursion during
constant expression evaluation. The minimum specified by the standard constant expression evaluation. The minimum specified by the standard
is 512. is 512.
...@@ -2093,7 +2090,7 @@ Set the maximum instantiation depth for template classes to @var{n}. ...@@ -2093,7 +2090,7 @@ Set the maximum instantiation depth for template classes to @var{n}.
A limit on the template instantiation depth is needed to detect A limit on the template instantiation depth is needed to detect
endless recursions during template class instantiation. ANSI/ISO C++ endless recursions during template class instantiation. ANSI/ISO C++
conforming programs must not rely on a maximum depth greater than 17 conforming programs must not rely on a maximum depth greater than 17
(changed to 1024 in C++0x). The default value is 900, as the compiler (changed to 1024 in C++11). The default value is 900, as the compiler
can run out of stack space before hitting 1024 in some situations. can run out of stack space before hitting 1024 in some situations.
@item -fno-threadsafe-statics @item -fno-threadsafe-statics
...@@ -2368,14 +2365,14 @@ by @option{-Wall}. ...@@ -2368,14 +2365,14 @@ by @option{-Wall}.
@item -Wno-narrowing @r{(C++ and Objective-C++ only)} @item -Wno-narrowing @r{(C++ and Objective-C++ only)}
@opindex Wnarrowing @opindex Wnarrowing
@opindex Wno-narrowing @opindex Wno-narrowing
With -std=c++0x, suppress the diagnostic required by the standard for With -std=c++11, suppress the diagnostic required by the standard for
narrowing conversions within @samp{@{ @}}, e.g. narrowing conversions within @samp{@{ @}}, e.g.
@smallexample @smallexample
int i = @{ 2.2 @}; // error: narrowing from double to int int i = @{ 2.2 @}; // error: narrowing from double to int
@end smallexample @end smallexample
This flag can be useful for compiling valid C++98 code in C++0x mode This flag can be useful for compiling valid C++98 code in C++11 mode.
@item -Wnoexcept @r{(C++ and Objective-C++ only)} @item -Wnoexcept @r{(C++ and Objective-C++ only)}
@opindex Wnoexcept @opindex Wnoexcept
...@@ -2993,7 +2990,7 @@ Options} and @ref{Objective-C and Objective-C++ Dialect Options}. ...@@ -2993,7 +2990,7 @@ Options} and @ref{Objective-C and Objective-C++ Dialect Options}.
@gccoptlist{-Waddress @gol @gccoptlist{-Waddress @gol
-Warray-bounds @r{(only with} @option{-O2}@r{)} @gol -Warray-bounds @r{(only with} @option{-O2}@r{)} @gol
-Wc++0x-compat @gol -Wc++11-compat @gol
-Wchar-subscripts @gol -Wchar-subscripts @gol
-Wenum-compare @r{(in C/Objc; this is on by default in C++)} @gol -Wenum-compare @r{(in C/Objc; this is on by default in C++)} @gol
-Wimplicit-int @r{(C and Objective-C only)} @gol -Wimplicit-int @r{(C and Objective-C only)} @gol
...@@ -4063,10 +4060,10 @@ Warn about ISO C constructs that are outside of the common subset of ...@@ -4063,10 +4060,10 @@ Warn about ISO C constructs that are outside of the common subset of
ISO C and ISO C++, e.g.@: request for implicit conversion from ISO C and ISO C++, e.g.@: request for implicit conversion from
@code{void *} to a pointer to non-@code{void} type. @code{void *} to a pointer to non-@code{void} type.
@item -Wc++0x-compat @r{(C++ and Objective-C++ only)} @item -Wc++11-compat @r{(C++ and Objective-C++ only)}
Warn about C++ constructs whose meaning differs between ISO C++ 1998 and Warn about C++ constructs whose meaning differs between ISO C++ 1998 and
ISO C++ 200x, e.g., identifiers in ISO C++ 1998 that will become keywords ISO C++ 2011, e.g., identifiers in ISO C++ 1998 that will become keywords
in ISO C++ 200x. This warning is enabled by @option{-Wall}. in ISO C++ 2011. This warning is enabled by @option{-Wall}.
@item -Wcast-qual @item -Wcast-qual
@opindex Wcast-qual @opindex Wcast-qual
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment