From patchwork Tue Aug 6 14:38:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filip Kastl X-Patchwork-Id: 1969607 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=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=18qhZ1ic; dkim=pass header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=ei5kNk6n; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=18qhZ1ic; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=ei5kNk6n; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4WdbXq3S0bz1yYD for ; Wed, 7 Aug 2024 00:39:07 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B6EC93858410 for ; Tue, 6 Aug 2024 14:39:05 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) by sourceware.org (Postfix) with ESMTPS id F06513857011 for ; Tue, 6 Aug 2024 14:38:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F06513857011 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F06513857011 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722955124; cv=none; b=wlcz6DTY624JaV2VG2NwmeJ8yDudWUik7dI4ILfEArBDDZuOyZy+p6bfZ4zIX3klNd1T3LUMgan5NQaJCQzyBJo/Zju92gYz77w1J819IY8cZDvR+S4+dJ+Ao5H5+KntFVpcT/l3sE0JTFIYkqNzPVrqZChqOLLi5ZHti0+p6T0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722955124; c=relaxed/simple; bh=xPoNC6bRMBHS0A/cCmHb/7ay10wHy3cyqIvf44Uk65M=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date: From:To:Subject:Message-ID:MIME-Version; b=kP8x3dJ7VO/cRNi998WVtaG/mKHBZ0h7G7UmB80gEw0rH1oJCF+Dm/ex3HD44UACp7KKiY6EhW/nUQcXkFS6OIy6B1zyXE71Lr914G7LONaWdBXGTy3J0gN8nzuixHZ4Dz23a3YuwEd55S8kq5TVqvKJFx36f2lAjMnJUz8eueU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 020D321C41; Tue, 6 Aug 2024 14:38:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1722955122; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=SGMwMSwWcf6gCCKIwttkkfJyWgPjlvI+iBcOu5VKQ08=; b=18qhZ1ic5ZtI6F/GrHjkJ6Exh/pef0JMwJLXMoRh9bLIHL9rqZw/VASaomaGQho0v0JNrz 0s6MLeeIBzFoMZ0rd20VOw/T3pskcipnIF20Dap8xTJEvNwAMMhbdB32+uQla07eS+Wt9P imUimi2Mxt3teDGL02vOs1aGB6k5SJo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1722955122; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=SGMwMSwWcf6gCCKIwttkkfJyWgPjlvI+iBcOu5VKQ08=; b=ei5kNk6nfKO0sWJE1Ky2yOWM/ub07cojIyBQj5+WU4mOUFWlXVfP43nrARCtMVnGWiDuhU D60uQ3/NGLKdf4BQ== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=18qhZ1ic; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=ei5kNk6n DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1722955122; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=SGMwMSwWcf6gCCKIwttkkfJyWgPjlvI+iBcOu5VKQ08=; b=18qhZ1ic5ZtI6F/GrHjkJ6Exh/pef0JMwJLXMoRh9bLIHL9rqZw/VASaomaGQho0v0JNrz 0s6MLeeIBzFoMZ0rd20VOw/T3pskcipnIF20Dap8xTJEvNwAMMhbdB32+uQla07eS+Wt9P imUimi2Mxt3teDGL02vOs1aGB6k5SJo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1722955122; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type; bh=SGMwMSwWcf6gCCKIwttkkfJyWgPjlvI+iBcOu5VKQ08=; b=ei5kNk6nfKO0sWJE1Ky2yOWM/ub07cojIyBQj5+WU4mOUFWlXVfP43nrARCtMVnGWiDuhU D60uQ3/NGLKdf4BQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id EF7BA13AF4; Tue, 6 Aug 2024 14:38:41 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id lsxzOnE1smbwXQAAD6G6ig (envelope-from ); Tue, 06 Aug 2024 14:38:41 +0000 Date: Tue, 6 Aug 2024 16:38:41 +0200 From: Filip Kastl To: gcc-patches@gcc.gnu.org Cc: jwakely@redhat.com, gerald@pfeifer.com Subject: [wwwdocs] gcc-15: Mention c++ header dependency changes () in porting_to.html Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Level: X-Rspamd-Action: no action X-Spam-Score: -2.21 X-Rspamd-Queue-Id: 020D321C41 X-Spamd-Result: default: False [-2.21 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MIME_HTML_ONLY(1.20)[]; EXT_CSS(1.00)[]; NEURAL_HAM_LONG(-1.00)[-0.995]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MX_GOOD(-0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; FUZZY_BLOCKED(0.00)[rspamd.com]; MIME_TRACE(0.00)[0:~]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[suse.cz:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; MISSING_XM_UA(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:dkim] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, 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 Hi, I recently had to add '#include ' to a program to compile it with the latest trunk GCC due to https://gcc.gnu.org/pipermail/gcc-patches/2024-August/659176.html So I thought I might create the GCC 15 porting_to.html page and add an entry about this (I just copied the entry from GCC 14 porting_to.html). Ha! As I'm writing this I noticed that actually Jonathan predicted this and suggested a corresponding porting_to.html entry. Well, here it is :). Validated with the W3 Validator. Is this ok to be pushed? Cheers, Filip Kastl -- 8< -- --- htdocs/gcc-15/changes.html | 3 +- htdocs/gcc-15/porting_to.html | 53 +++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 htdocs/gcc-15/porting_to.html diff --git a/htdocs/gcc-15/changes.html b/htdocs/gcc-15/changes.html index bfd98496..0d2c0aaf 100644 --- a/htdocs/gcc-15/changes.html +++ b/htdocs/gcc-15/changes.html @@ -17,9 +17,8 @@

This page is a "brief" summary of some of the huge number of improvements in GCC 15. -

diff --git a/htdocs/gcc-15/porting_to.html b/htdocs/gcc-15/porting_to.html new file mode 100644 index 00000000..43c3b302 --- /dev/null +++ b/htdocs/gcc-15/porting_to.html @@ -0,0 +1,53 @@ + + + + + +Porting to GCC 15 + + + + +

Porting to GCC 15

+ +

+The GCC 15 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 15. This document is an effort to identify common issues +and provide solutions. Let us know if you have suggestions for improvements! +

+ +

Note: GCC 15 has not been released yet, so this document is +a work-in-progress.

+ + + +

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 15: +

+
    +
  • <cstdint> + (for std::int8_t, std::int32_t etc.) +
  • +
+ + + + +