From patchwork Mon Oct 30 15:10:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1857158 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZUArYvTs; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SJxY40j8Mz1yQW for ; Tue, 31 Oct 2023 02:10:48 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0F44F385E02A for ; Mon, 30 Oct 2023 15:10:46 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 8798B3858C5F for ; Mon, 30 Oct 2023 15:10:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8798B3858C5F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8798B3858C5F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698678634; cv=none; b=jfrL9HMZYCl1NV8M1cPgpL1kwbQACXP56Yz7oqT/qIY9ApQNP3A42fCtWEypBE7lmosNhVtzBqMboFPmpIn6N3CXbBI211MG9JZ0adI3pcdQGWsJtDcF5tuTKr0enBOPqFkLSERIV5OZJ5/vFFtDeF6hyXreB/Se4706rmsFRh0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698678634; c=relaxed/simple; bh=HIPod60/JrZTMCKIZA3H4f6fU4E9h8Hr1lgXkmHW4Fs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=EFE25O7PNnLJ31/M0wV3BajdIecZ6z9O6rwUture7+C+FHvFZNo+Y6c0XeYWYuNueYBc7Sqm/T9bnEcx49pdABgRz09UJ9umGsNmc24xfQkYuUdHQdeDyxAzVfbxCAFieZEUBASXO2DbA8Po5zW0jVvBsxZB1QaA6Ch7rTcJlJQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698678633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=swTYyM6pJ9tReSEgEvEfvfcDM4KepV/99+xJcUkW56I=; b=ZUArYvTst/O1kjqQRrCDuoRz9EFGDKnlifpOPzkZyzJ4vvHFg4ckaHPmSxo9xkyrL1UGyA 9vuE6i1ai0j+wdvIABxdvrzY1cizjYyOa8Dpcg+S0c4qApbgdvhDDsluar5lRR8BDI7Cy3 x3Pz1o/Oqh41GUbHfKwzQwzuJb7rpuA= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-363-gy6acgrYNzyDEbjMxx7TZg-1; Mon, 30 Oct 2023 11:10:31 -0400 X-MC-Unique: gy6acgrYNzyDEbjMxx7TZg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6CC6C3810D27; Mon, 30 Oct 2023 15:10:31 +0000 (UTC) Received: from localhost (unknown [10.42.28.144]) by smtp.corp.redhat.com (Postfix) with ESMTP id 371792026D4C; Mon, 30 Oct 2023 15:10:31 +0000 (UTC) From: Jonathan Wakely To: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org Subject: [committed][wwwdocs] Add "Porting to GCC 14" Date: Mon, 30 Oct 2023 15:10:13 +0000 Message-ID: <20231030151030.47170-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Pushed to wwwdocs. -- >8 -- --- htdocs/gcc-14/porting_to.html | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 htdocs/gcc-14/porting_to.html diff --git a/htdocs/gcc-14/porting_to.html b/htdocs/gcc-14/porting_to.html new file mode 100644 index 00000000..dea9ac80 --- /dev/null +++ b/htdocs/gcc-14/porting_to.html @@ -0,0 +1,50 @@ + + + + + +Porting to GCC 14 + + + + +

Porting to GCC 14

+ +

+The GCC 14 release series differs from previous GCC releases in +a number of ways. Some of these are a result +of bug fixing, and some old behaviors have been intentionally changed +to support new standards, or relaxed in standards-conforming ways to +facilitate compilation or run-time performance. +

+ +

+Some of these changes are user visible and can cause grief when +porting to GCC 14. This document is an effort to identify common issues +and provide solutions. Let us know if you have suggestions for improvements! +

+ +

C++ language issues

+ +

Header dependency changes

+

Some C++ Standard Library headers have been changed to no longer include +other headers that were being used internally by the library. +As such, C++ programs that used standard library components without +including the right headers will no longer compile. +

+

+The following headers are used less widely in libstdc++ and may need to +be included explicitly when compiling with GCC 14: +

+
    +
  • <algorithm> + (for std::copy_n, std::lower_bound, + std::remove, std::reverse, + std::sort etc.) +
  • +
+ + + + +