From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2122) id 36BD9385AC32; Wed, 17 Nov 2021 17:45:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36BD9385AC32 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jason Merrill To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-5346] doc: document -fimplicit-constexpr X-Act-Checkin: gcc X-Git-Author: Jason Merrill X-Git-Refname: refs/heads/master X-Git-Oldrev: 5ea8803e65eb546f58d3dccf5aff94a1638ba8b2 X-Git-Newrev: d3a9082d7acc3ef443de6f14a16e7063d92844b1 Message-Id: <20211117174535.36BD9385AC32@sourceware.org> Date: Wed, 17 Nov 2021 17:45:35 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2021 17:45:35 -0000 https://gcc.gnu.org/g:d3a9082d7acc3ef443de6f14a16e7063d92844b1 commit r12-5346-gd3a9082d7acc3ef443de6f14a16e7063d92844b1 Author: Jason Merrill Date: Wed Nov 17 05:45:02 2021 -0500 doc: document -fimplicit-constexpr I forgot this in the implementation patch. gcc/ChangeLog: * doc/invoke.texi (C++ Dialect Options): Document -fimplicit-constexpr. Diff: --- gcc/doc/invoke.texi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index a22758d18ee..bd6b9f6010c 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