public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed][wwwdocs] Add notes about <ctime> and <pthread.h> header dependencies
@ 2022-07-05 16:43 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-07-05 16:43 UTC (permalink / raw)
  To: gcc-patches

I backported a change to the <string> header which meant it no longer
includes <pthread.h>, which broke some (incorrect) packages. This
updates the GCC 12 docs to mention it.

Pushed to wwwdocs.

-- >8 --

Also fix missing closing tag for <p>.
---
 htdocs/gcc-12/porting_to.html | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/htdocs/gcc-12/porting_to.html b/htdocs/gcc-12/porting_to.html
index 079bda30..3badb0cc 100644
--- a/htdocs/gcc-12/porting_to.html
+++ b/htdocs/gcc-12/porting_to.html
@@ -82,6 +82,12 @@ be included explicitly when compiled with GCC 12:
 <li> <code>&lt;atomic&gt;</code>
   (for <code>std::atomic</code>)
 </li>
+<li> <code>&lt;ctime&gt;</code>
+  (for <code>std::time</code>, <code>std::mktime</code> etc.)
+</li>
+<li> <code>&lt;pthread.h&gt;</code>
+  (for <code>pthread_create</code>, <code>pthread_mutex_t</code> etc.)
+</li>
 </ul>
 
 <h3 id="cxx-deprecations">C++ Standard Library deprecations</h3>
@@ -109,6 +115,8 @@ GCC 12 now uses <code>OPERATION</code> as the name of the function to
 the <code>CO_REDUCE</code> intrinsic for the pairwise reduction, thus
 conforming to the Fortran 2018 standard.  Previous versions
 used <code>OPERATOR</code>, which conformed to TS 18508.
+</p>
+
 <!--
 <h2 id="links">Links</h2>
 -->
-- 
2.36.1


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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-05 16:43 [committed][wwwdocs] Add notes about <ctime> and <pthread.h> header dependencies Jonathan Wakely

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).