diff options
Diffstat (limited to 'libstdc++-v3/doc/xml/manual/using.xml')
-rw-r--r-- | libstdc++-v3/doc/xml/manual/using.xml | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/libstdc++-v3/doc/xml/manual/using.xml b/libstdc++-v3/doc/xml/manual/using.xml index 34b4883cfec..2c8d179b489 100644 --- a/libstdc++-v3/doc/xml/manual/using.xml +++ b/libstdc++-v3/doc/xml/manual/using.xml @@ -16,7 +16,8 @@ The standard library conforms to the dialect of C++ specified by the <option>-std</option> option passed to the compiler. By default, <command>g++</command> is equivalent to - <command>g++ -std=gnu++98</command>. + <command>g++ -std=gnu++14</command> since GCC 6, and + <command>g++ -std=gnu++98</command> for older releases. </para> <table frame="all" xml:id="table.cmd_options"> @@ -718,7 +719,7 @@ and <code>std::sinl</code>. <para>There are three base header files that are provided. They can be used to precompile the standard headers and extensions into binary -files that may the be used to speed compiles that use these headers. +files that may then be used to speed up compilations that use these headers. </para> @@ -726,7 +727,7 @@ files that may the be used to speed compiles that use these headers. <listitem> <para>stdc++.h</para> <para>Includes all standard headers. Actual content varies depending on -language dialect. +<link linkend="manual.intro.using.flags">language dialect</link>. </para> </listitem> @@ -737,13 +738,14 @@ language dialect. </listitem> <listitem><para>extc++.h</para> -<para>Includes all of <stdtr1c++.h>, and adds all the Extension headers. +<para>Includes all of <stdc++.h>, and adds all the Extension headers +(and in C++98 mode also adds all the TR1 headers by including all of +<stdtr1c++.h>). </para></listitem> </itemizedlist> -<para>How to construct a .gch file from one of these base header files.</para> - -<para>First, find the include directory for the compiler. One way to do +<para>To construct a .gch file from one of these base header files, +first find the include directory for the compiler. One way to do this is:</para> <programlisting> @@ -903,11 +905,22 @@ g++ -Winvalid-pch -I. -include stdc++.h -H -g -O2 hello.cc -o test.exe </para> </listitem></varlistentry> + <varlistentry><term><code>_GLIBCXX_ASSERTIONS</code></term> + <listitem> + <para> + Undefined by default. When defined, enables extra error checking in + the form of precondition assertions, such as bounds checking in + strings and null pointer checks when dereferencing smart pointers. + </para> + </listitem></varlistentry> <varlistentry><term><code>_GLIBCXX_DEBUG</code></term> <listitem> <para> Undefined by default. When defined, compiles user code using the <link linkend="manual.ext.debug_mode">debug mode</link>. + When defined, <code>_GLIBCXX_ASSERTIONS</code> is defined + automatically, so all the assertions enabled by that macro are also + enabled in debug mode. </para> </listitem></varlistentry> <varlistentry><term><code>_GLIBCXX_DEBUG_PEDANTIC</code></term> |