From: Jason Merrill Date: Wed, 17 Nov 2021 10:45:02 +0000 (-0500) Subject: doc: document -fimplicit-constexpr X-Git-Tag: basepoints/gcc-13~2967 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3a9082d7acc3ef443de6f14a16e7063d92844b1;p=thirdparty%2Fgcc.git doc: document -fimplicit-constexpr I forgot this in the implementation patch. gcc/ChangeLog: * doc/invoke.texi (C++ Dialect Options): Document -fimplicit-constexpr. --- diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index a22758d18ee4..bd6b9f6010cc 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -3106,6 +3106,13 @@ word as an identifier. You can use the keyword @code{__typeof__} instead. This option is implied by the strict ISO C++ dialects: @option{-ansi}, @option{-std=c++98}, @option{-std=c++11}, etc. +@item -fimplicit-constexpr +@opindex fimplicit-constexpr +Make inline functions implicitly constexpr, if they satisfy the +requirements for a constexpr function. This option can be used in +C++14 mode or later. This can result in initialization changing from +dynamic to static and other optimizations. + @item -fno-implicit-templates @opindex fno-implicit-templates @opindex fimplicit-templates