From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 34D1B3858C2F for ; Mon, 30 Oct 2023 15:10:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 34D1B3858C2F 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 34D1B3858C2F 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=1698678636; cv=none; b=FYsUfgpaPW2cmzJAja+EhoqELQm3NUu+O+XGHuDsimaKuokNAhhxSErjSsxpLYBdmB0r5q1p0EcLcOtOfuHderL+tOUEiGUzxvQwPbogRmmRwl0M51XCU5QuVjP21CXDMWjFh6Dmrfxef8q999Vnd3AeuapAj98yzf3wuKOe9Uo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698678636; c=relaxed/simple; bh=HIPod60/JrZTMCKIZA3H4f6fU4E9h8Hr1lgXkmHW4Fs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=eYAniMBKb1uKS6elwjHuvHMbnkQZm0eQK0FpSo8EQQ3xhQ8/azDxWH6I7AYPB8ybO2N7QN+9gP6Radqr5z99PkiqPOAM3In0rphr9yo6bIeVFoivncL19PbUcRP0sJo1ycpPxsqr/TRg8B+UjD4FWwy3lNlX9nXpypTZ0JFOod0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698678634; 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=YqDXhMRJlQYbnLXyGNCWyXSi/BN9McAXEUah90F+Ba7kO0lQzyC3sP0XYZR0y+gJ6nhnRH 5YvssKly4HlNx8lelxb4ySDQxlqv3QJ+cEnzlBJowjZh7papaIV67VRjO7AUK5Goys+gZK kIKzJDbCo3q4Tl9rtYBzLExxmenIX94= 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 Content-Type: text/plain Content-Transfer-Encoding: 8bit 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=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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.) +
  • +
+ + + + + -- 2.41.0