From patchwork Fri Jan 19 15:15:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Palka X-Patchwork-Id: 1888533 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=CW/JgC8U; 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 4TGjrb0rSHz1yPv for ; Sat, 20 Jan 2024 02:16:45 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B5B6E385771A for ; Fri, 19 Jan 2024 15:16:42 +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 2917B3858C2D for ; Fri, 19 Jan 2024 15:16:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2917B3858C2D 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 2917B3858C2D 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=1705677380; cv=none; b=FprXFa7eZK3bwT6x1aTMbjUFoF4mm/dvRk7yIgFjmqyN5uCZHTHpPrMGe18vXwyIWhXfVDbig7Xom+0KOHzx/IzXR53AYH6W2E2hy6zpRRh16CADFiYXpKTrLpzzypMNBZWBxuPCGgMVaEHp+jUtrqUZpdrKNNVFdxrOVIr/o5Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705677380; c=relaxed/simple; bh=LiiRAnbcM3/28psvoezjcPKzyD44Ddcvjb0noBwnwFc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=R17OPoeQpSpMwSXzzHUR5J2hNUURfvV7ebgLNe3q/yQKEeH4NN3Qe5zU5NS2H0QRw5Zd2KlHEZKUPUn6GMUfMPSCp1Yn7vSSfS9vmz+lcqIDpngjWGJH9RFrrWGr8bCkW6/KvQrGPhYycnoZCOk1NqOaCSlUxXhraz3ZdqOl04Q= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705677376; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KYzFuLtpKlQff0X1qhA0he8Nlnt6dbFliU2ZXdpeU6w=; b=CW/JgC8URgjaua+SsCVdq0GyEk+yhCF488X8SAnKfAEjEUOy7MPUylEttk5l/EBBCJ5zJc sze7LaMtCA4Hkvb341Mo1X99J4tSSDDLZtE8Zh4KyZyWN/a2LTZUCUEKdSbc9ePco6F1Aj rQN3NWAT5cZQWwjH0sP5nmcFZhdEGoc= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-623-6coIrRZDPRWMGwMiABfsFw-1; Fri, 19 Jan 2024 10:16:15 -0500 X-MC-Unique: 6coIrRZDPRWMGwMiABfsFw-1 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-6800a9361a8so15331926d6.2 for ; Fri, 19 Jan 2024 07:16:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705677374; x=1706282174; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KYzFuLtpKlQff0X1qhA0he8Nlnt6dbFliU2ZXdpeU6w=; b=ZtvUmPDteb4AwMHAjvD9HZRbzGI8kBIHGytjzOu2ySUOj6pszWQnQ7u5eW5RBHaXAb MDJURkuPU7Fv/jtQQJEbqT2hSk/CZ7O3mpx1WIiWgNJyUHYQyTyn8IWL/H+VjZiBPmZO 5XG4/zWk9EyeuXC28933ReD0FC4q7d+aswmZ+PJ5k4nZHULfbVGS/7BI9XKAM/BrC93b HnauwHiVkvlRvuG47+5u/Bw2VcmG9lc3UeghtlctSTC/OFu+qmYl/ZCnqqbKVW4n/fL9 pn6cs6dmZffQwI/OGQTUkDSZbD1/9o3u6CxjJKVfw/mGQI10NjFOvdMFVeQMdSl6eVqx l1IQ== X-Gm-Message-State: AOJu0YxRX/6l62r42H9D2lGaP0UHnNFAcQp9hP5X2xLQ5z3lfsNm7baE RHSPXblKOxLP1mKZuil3+QPaJivferLkJTsaKlMWAexpLk76OfG3DlaZ43Cu4fqL6J84LMUZpm6 JXbI4i3DIISALzUtidISDv2BcFHSKpP9R7WxDajKjAg91m5BUy5ofDXW02J4YXRRJ7ZOxPZTdxD AsHDeRqdGhfdoOeHeEQW46yFYuFq/pRNHTdjll X-Received: by 2002:a05:6214:b65:b0:681:8c26:d750 with SMTP id ey5-20020a0562140b6500b006818c26d750mr20486qvb.123.1705677374490; Fri, 19 Jan 2024 07:16:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNwQcp/IU6a0p9F5A4ZV0NYrDR3S03rQ1si3h4L8C97urnOEufviB8Q7+eBt7lmWZMy65QRQ== X-Received: by 2002:a05:6214:b65:b0:681:8c26:d750 with SMTP id ey5-20020a0562140b6500b006818c26d750mr20472qvb.123.1705677374265; Fri, 19 Jan 2024 07:16:14 -0800 (PST) Received: from localhost.localdomain (ool-457670bb.dyn.optonline.net. [69.118.112.187]) by smtp.gmail.com with ESMTPSA id ng3-20020a0562143bc300b006848cc2817esm248433qvb.33.2024.01.19.07.16.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 07:16:13 -0800 (PST) From: Patrick Palka To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org, Patrick Palka Subject: [PATCH] libstdc++: Add and to stdc++.h Date: Fri, 19 Jan 2024 10:15:46 -0500 Message-ID: <20240119151546.537432-1-ppalka@redhat.com> X-Mailer: git-send-email 2.43.0.367.g186b115d30 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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 Tested on x86_64-pc-linux-gnu, does this look OK for trunk? -- >8 -- libstdc++-v3/ChangeLog: * include/precompiled/stdc++.h [_GLIBCXX_HOSTED]: Include and for C++23 and C++26 respectively. --- libstdc++-v3/include/precompiled/stdc++.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h index a1db96cbb64..3eef20d1645 100644 --- a/libstdc++-v3/include/precompiled/stdc++.h +++ b/libstdc++-v3/include/precompiled/stdc++.h @@ -223,6 +223,7 @@ #if __cplusplus > 202002L #include #include +#include #include #if __has_include() # include @@ -231,4 +232,8 @@ #include #endif +#if __cplusplus > 202302L +#include +#endif + #endif // HOSTED