From patchwork Tue Feb 27 11:41:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 86431 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1A3B43858016 for ; Tue, 27 Feb 2024 11:46:21 +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.133.124]) by sourceware.org (Postfix) with ESMTPS id 39FF0385840D for ; Tue, 27 Feb 2024 11:45:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 39FF0385840D 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 39FF0385840D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709034337; cv=none; b=uABZOU5P94w7pKkTaEARZ1jBzBJFr4j3n72BOGkpZGnxW+KsEuUA0a8U9dm8Hn7FHzuWsOcdaye0VbYz/BxWwjIkZgrrMfMUw4Gj6ZvhHhTn1YsrZLrFx7p+afmeW8u77sL4kxSgl+9kZBOGKZe0wsxkQG28FfofTT9rNFXH2YA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709034337; c=relaxed/simple; bh=CHIys3h9B2NLUNxfZ8eeWpDHxOaUbnJ8dsEN6Yffet4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=O4qlStvOqJ6zmZGYaxbRjibcD/ppQO33q8EJFUl7qR0fHjI1fy5FoMYe4cH4p3/wZeLROWlZXAxOOBhSbUKpW4geaZ05iARCJvS+VU+04iEc//ZmClqzTWPRaXOe8gaOD+Dbq79y75nV4WzBK4rFBsJ8EPkdmGE9GE7uoJy9MoY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709034334; 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=x0TX6tg4hnVzKpR6vTT8tZR+k1KzPELF7TQN7bF+ziE=; b=OmNAmderoEpUK+jGW2cB2E0Xi4UP84FuTFrp/cfE741r3BAZl9sPmt4QufbF+aYu/EtQok xXsrh/7CXlEV2d4N4piAzQb2mH8ysAWBW6nHsKfl/ewW/PiRz9cekGC+7mp9044Sf8HanA DomyUsD+QEcDDkDn6zoqaMEdnzT+5Q4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-110-zjqdXkB_MiWvfwVJ_PFr4w-1; Tue, 27 Feb 2024 06:45:30 -0500 X-MC-Unique: zjqdXkB_MiWvfwVJ_PFr4w-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (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 7634410650E2; Tue, 27 Feb 2024 11:45:30 +0000 (UTC) Received: from localhost (unknown [10.42.28.181]) by smtp.corp.redhat.com (Postfix) with ESMTP id 440611C060B1; Tue, 27 Feb 2024 11:45:30 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [PATCH 2/8] libstdc++: Include in Date: Tue, 27 Feb 2024 11:41:59 +0000 Message-ID: <20240227114528.1350601-2-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.9 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, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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+patchwork=sourceware.org@gcc.gnu.org Tested x86_64-linux. Reviews invited. -- >8 -- libstdc++-v3/ChangeLog: * include/bits/alloc_traits.h: Include for __make_move_if_noexcept_iterator. --- libstdc++-v3/include/bits/alloc_traits.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libstdc++-v3/include/bits/alloc_traits.h b/libstdc++-v3/include/bits/alloc_traits.h index 5e661e04741..82fc79c7b9f 100644 --- a/libstdc++-v3/include/bits/alloc_traits.h +++ b/libstdc++-v3/include/bits/alloc_traits.h @@ -38,6 +38,9 @@ # if _GLIBCXX_HOSTED # include # endif +# if __cpp_exceptions +# include // __make_move_if_noexcept_iterator +# endif #endif namespace std _GLIBCXX_VISIBILITY(default)