From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id D1726385480D; Thu, 14 Jan 2021 10:42:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D1726385480D To: gcc-cvs-wwwdocs@gcc.gnu.org Subject: gcc-wwwdocs branch master updated. 768ecbe7af00a219cfdff9fba96874a0fe9c94bb X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 6be6626d59e1c492d5e05606e5a6902feb9e5bac X-Git-Newrev: 768ecbe7af00a219cfdff9fba96874a0fe9c94bb Message-Id: <20210114104214.D1726385480D@sourceware.org> Date: Thu, 14 Jan 2021 10:42:14 +0000 (GMT) From: Jonathan Wakely X-BeenThere: gcc-cvs-wwwdocs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs-wwwdocs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2021 10:42:14 -0000 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 768ecbe7af00a219cfdff9fba96874a0fe9c94bb (commit) via b1448ab2ec847fd9a8283881f620d3ace0aea8ed (commit) from 6be6626d59e1c492d5e05606e5a6902feb9e5bac (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 768ecbe7af00a219cfdff9fba96874a0fe9c94bb Author: Jonathan Wakely Date: Thu Jan 14 10:41:43 2021 +0000 Document addition of C++ header in C++11 diff --git a/htdocs/gcc-11/changes.html b/htdocs/gcc-11/changes.html index e044d710..3527428f 100644 --- a/htdocs/gcc-11/changes.html +++ b/htdocs/gcc-11/changes.html @@ -307,7 +307,8 @@ a work-in-progress.

  • std::bit_cast
  • std::source_location
  • Atomic wait and notify operations.
  • -
  • <latch> and <semaphore>
  • +
  • <barrier>, <latch>, + and <semaphore>
  • <syncstream>
  • Efficient access to basic_stringbuf's buffer.
  • commit b1448ab2ec847fd9a8283881f620d3ace0aea8ed Author: Jonathan Wakely Date: Thu Jan 14 10:40:47 2021 +0000 Add "porting to" notes for libstdc++ in GCC 11 diff --git a/htdocs/gcc-11/porting_to.html b/htdocs/gcc-11/porting_to.html index 4187dd8e..83227c74 100644 --- a/htdocs/gcc-11/porting_to.html +++ b/htdocs/gcc-11/porting_to.html @@ -141,6 +141,35 @@ change the code to not include the <tr1/functional> header, so that only std::bind is declared.

    +

    Enable multithreading to use std::thread

    +

    +Programs must be linked to libpthread in order for std::thread +to create new threads of execution. +It is not sufficient to use dlopen to dynamically load +libpthread.so at run-time. +

    + +

    Do not undefine __STRICT_ANSI__

    +

    +The __STRICT_ANSI__ macro is defined by the compiler to +inform the C and C++ standard library headers when a strict language dialect +is being used, e.g. -std=c++17 or -std=c11 rather +than -std=gnu++17 or -std=gnu11. +

    +

    +If you undefine the __STRICT_ANSI__ macro then you create an +inconsistent state where the compiler is using a strict dialect but the +standard library headers think that GNU extensions are enabled. +The libstdc++ headers in GCC 11 cannot be used in this state and are likely +to produce compilation errors. +

    +

    +If you don't want the macro to be defined, don't use a -std +option that causes it to be defined. +Simply use a -std=gnu++NN option instead of +-std=c++NN. +

    + ----------------------------------------------------------------------- Summary of changes: htdocs/gcc-11/changes.html | 3 ++- htdocs/gcc-11/porting_to.html | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) hooks/post-receive -- gcc-wwwdocs