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: 189605 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp1116393dyb; Fri, 19 Jan 2024 08:20:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/4G9bjbj6l9XqOuctUD4f1Rp/qc9u/5QaBg5Vz7jWosrHsoGUUanwJc4XrLU3RY9zRMO4 X-Received: by 2002:a05:620a:44cb:b0:783:74c6:2d12 with SMTP id y11-20020a05620a44cb00b0078374c62d12mr166702qkp.71.1705681229422; Fri, 19 Jan 2024 08:20:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705681229; cv=pass; d=google.com; s=arc-20160816; b=PVbORlhIiHFjS8Z2S0NzLXhn99LqBmJLoaOjeCaqna5vjSJicUbxvfupQJhx0zFlYk uH5oQny9KWSi6tvLdaVyl96TsJyubBmVHlaufsyKbbuIokRnVtOd9C+UEwaHZExAxmHs HxF36OxLn8dufSHxdIzSlLF2Nfp/dWistSf30kwCTI1KP7ambfssEijXKMiEekz3JK2x a06kHvZTMT0OAYvQ23e/c93hO2HPAOBwnxXCTtBGyLK94Bw0WIX2jYTAC6w8NF2GpbGe JCsDWMFrSna0LCrJpXQvQpJOGxAPoypI9ium14w4nigTP0FAp0uZJYR5mqsJHBU2unYx j1qA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=KYzFuLtpKlQff0X1qhA0he8Nlnt6dbFliU2ZXdpeU6w=; fh=EVSvWd94bH3+6DLHxQIQnUkCnGLOu/mRCJOpcO366zA=; b=dmwDopn8ZEF1wKvPQuH4PiylMylt7Fq4XjauXDx8gTU25mM2t2C/UovtpvrnfdQ9Oi lmPMg9Hdl3GLxNpF4dBZ949pvMSZQszfkx0jLeSeVaeRBtiXJ39uqd1Fadh4bH438Y0v GfH4l20i8BRfoh9hJ1NZmtH+dQaxKm3ziVuL9+7acIkK4EnXhz5PPava5SDwNNYe9uKh eIribFXmwdzJHwLCiljdUPTD0rirK/TrgtVhnwX7coeOXH6sOW5MMz4EWFJGrqrGcnoi esbY79IwrmPBV6aXuCh4cJk6K8GFdq+K6OaXNwGPAmWYtfr9DPbb1jKZWzIm4xv4YOzt HxEw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="CW/JgC8U"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id de32-20020a05620a372000b0078341846c86si17814927qkb.414.2024.01.19.08.20.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 08:20:29 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="CW/JgC8U"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0B303385E037 for ; Fri, 19 Jan 2024 15:17:07 +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-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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788536401167206975 X-GMAIL-MSGID: 1788536401167206975 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