public inbox for gcc-cvs-wwwdocs@sourceware.org
help / color / mirror / Atom feed
* gcc-wwwdocs branch master updated. c637096c2a3d4cf33ffd610255ecd451450895fd
@ 2022-04-07 16:09 Patrick Palka
  0 siblings, 0 replies; only message in thread
From: Patrick Palka @ 2022-04-07 16:09 UTC (permalink / raw)
  To: gcc-cvs-wwwdocs

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gcc-wwwdocs".

The branch, master has been updated
       via  c637096c2a3d4cf33ffd610255ecd451450895fd (commit)
      from  f1f7f774224a1580c9aad4b0f496626afc531adc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c637096c2a3d4cf33ffd610255ecd451450895fd
Author: Patrick Palka <ppalka007@gmail.com>
Date:   Thu Apr 7 12:07:20 2022 -0400

    gcc-12: Document new C++ flag -ffold-simple-inlines

diff --git a/htdocs/gcc-12/changes.html b/htdocs/gcc-12/changes.html
index 4cfe2bf5..d32ac0b7 100644
--- a/htdocs/gcc-12/changes.html
+++ b/htdocs/gcc-12/changes.html
@@ -290,6 +290,16 @@ a work-in-progress.</p>
   <li>New command-line option <code>-fimplicit-constexpr</code> can be used to
       make inline functions implicitly constexpr
       (<a href="https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=87c2080b">git</a>)</li>
+  <li>New command-line option <code>-ffold-simple-inlines</code> that controls
+      whether to fold calls to certain trivial inline functions (currently
+      <code>std::move</code>, <code>std::forward</code>,
+      <code>std::addressof</code> and <code>std::as_const</code>).  In contrast
+      to inlining such calls, folding means that no intermediate code or debug
+      information will be generated for them; this minimizes the abstraction
+      penalty incurred for using these functions versus using the fundamental
+      operations from which they're defined (e.g. <code>std::move</code> versus
+      <code>static_cast</code>).  This flag is enabled by default when
+      <code>-fno-inline</code> is not active.</li>
   <li>Deduction guides can be declared at class scope
       (<a href="https://gcc.gnu.org/PR79501">PR79501</a>)</li>
   <li><a href="https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wuninitialized"><code>-Wuninitialized</code></a>

-----------------------------------------------------------------------

Summary of changes:
 htdocs/gcc-12/changes.html | 10 ++++++++++
 1 file changed, 10 insertions(+)


hooks/post-receive
-- 
gcc-wwwdocs


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-07 16:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07 16:09 gcc-wwwdocs branch master updated. c637096c2a3d4cf33ffd610255ecd451450895fd Patrick Palka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).