From patchwork Fri Aug 23 12:20:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1976025 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=D0C6/b58; 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 4Wqzhy3ZfZz1yNr for ; Fri, 23 Aug 2024 22:22:10 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4AD4A3875DD9 for ; Fri, 23 Aug 2024 12:22:08 +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 ESMTP id ABC2D3861034 for ; Fri, 23 Aug 2024 12:21:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ABC2D3861034 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 ABC2D3861034 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=1724415673; cv=none; b=BQrMVFhD93JEof56843ZR72PaChpB5KZz1YFGq2ujAM98JeuFzeI95zBdYFI2OedIFkjWgDfHC8SY/P4LNJLzbVNeyD2uT/YQAriESAknVs9Cc5NChp+dA/uSjmems+Q9z9i7eNzV4yK3JyN14YPF6DtFHbQZ32fWvzzrYJbMe8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724415673; c=relaxed/simple; bh=QuKYxSFxz/oEOSTLTth/doWkGKvq3/lemiRANmgB0jQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=lOrlrbJhEppzbMBHhXU6HK9wKEXcqz93zWuaB8Y6NSoXcgKdjvo/YLwQjRccvOjYXv0xDRSuZ/oz7zkliIeJrGpjvUKeEQNSu7ONlEYSwyfEgRadc5xLTZVYuhd+MrGQnltmkUNkmZAZHjcqe5TVEP9qbEDKonUIUJHaH5/id7k= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724415670; 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=xLvhbkN5jFgxt/8G1ovY2NTUR+q3WCHKhTwfEy6DLa4=; b=D0C6/b58UnhE7+ieeg15j0P+2/CK1XQAWVdAdV0RNfTvEkTTvKBEIiBBmeMqvOkL/P4CvL IjYfu9fc31TR4W7v4YYuKXPp/H7Lk/7wbwlaUROoubng6geOhkiagMwmrwnYOnxNue97Op hTBeBXS765fAxdxwVMK9xvRz0qAGShs= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-634-JeUKsedDPIC51I6JfUuMDA-1; Fri, 23 Aug 2024 08:21:07 -0400 X-MC-Unique: JeUKsedDPIC51I6JfUuMDA-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (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 mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A29C51955F40; Fri, 23 Aug 2024 12:21:06 +0000 (UTC) Received: from localhost (unknown [10.42.28.41]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8BC4119560AA; Fri, 23 Aug 2024 12:21:04 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Use noexcept insted of throw() in src/c++11/debug.cc Date: Fri, 23 Aug 2024 13:20:46 +0100 Message-ID: <20240823122103.959432-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.5 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_SBL_CSS, 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~incoming=patchwork.ozlabs.org@gcc.gnu.org Tested x86_64-linux. Pushed to trunk. -- >8 -- libstdc++-v3/ChangeLog: * src/c++11/debug.cc: Replace throw() with noexcept. --- libstdc++-v3/src/c++11/debug.cc | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/libstdc++-v3/src/c++11/debug.cc b/libstdc++-v3/src/c++11/debug.cc index 5d6bb5b7547..e3880318e5c 100644 --- a/libstdc++-v3/src/c++11/debug.cc +++ b/libstdc++-v3/src/c++11/debug.cc @@ -380,7 +380,7 @@ namespace __gnu_debug __gnu_cxx::__mutex& _Safe_sequence_base:: - _M_get_mutex() throw () + _M_get_mutex() noexcept { return get_safe_base_mutex(this); } void @@ -393,7 +393,7 @@ namespace __gnu_debug void _Safe_sequence_base:: - _M_attach_single(_Safe_iterator_base* __it, bool __constant) throw () + _M_attach_single(_Safe_iterator_base* __it, bool __constant) noexcept { _Safe_iterator_base*& __its = __constant ? _M_const_iterators : _M_iterators; @@ -414,7 +414,7 @@ namespace __gnu_debug void _Safe_sequence_base:: - _M_detach_single(_Safe_iterator_base* __it) throw () + _M_detach_single(_Safe_iterator_base* __it) noexcept { // Remove __it from this sequence's list __it->_M_unlink(); @@ -443,7 +443,7 @@ namespace __gnu_debug void _Safe_iterator_base:: - _M_attach_single(_Safe_sequence_base* __seq, bool __constant) throw () + _M_attach_single(_Safe_sequence_base* __seq, bool __constant) noexcept { _M_detach_single(); @@ -478,7 +478,7 @@ namespace __gnu_debug void _Safe_iterator_base:: - _M_detach_single() throw () + _M_detach_single() noexcept { if (_M_sequence) { @@ -489,7 +489,7 @@ namespace __gnu_debug void _Safe_iterator_base:: - _M_reset() throw () + _M_reset() noexcept { reset_sequence_ptr(_M_sequence); // Do not reset version, so that a detached iterator does not look like a @@ -501,17 +501,17 @@ namespace __gnu_debug bool _Safe_iterator_base:: - _M_singular() const throw () + _M_singular() const noexcept { return !_M_sequence || _M_version != _M_sequence->_M_version; } bool _Safe_iterator_base:: - _M_can_compare(const _Safe_iterator_base& __x) const throw () + _M_can_compare(const _Safe_iterator_base& __x) const noexcept { return _M_sequence == __x._M_sequence; } __gnu_cxx::__mutex& _Safe_iterator_base:: - _M_get_mutex() throw () + _M_get_mutex() noexcept { return _M_sequence->_M_get_mutex(); } _Safe_unordered_container_base* @@ -538,7 +538,7 @@ namespace __gnu_debug void _Safe_local_iterator_base:: - _M_attach_single(_Safe_sequence_base* __cont, bool __constant) throw () + _M_attach_single(_Safe_sequence_base* __cont, bool __constant) noexcept { _M_detach_single(); @@ -566,7 +566,7 @@ namespace __gnu_debug void _Safe_local_iterator_base:: - _M_detach_single() throw () + _M_detach_single() noexcept { if (_M_sequence) { @@ -608,7 +608,7 @@ namespace __gnu_debug void _Safe_unordered_container_base:: - _M_attach_local_single(_Safe_iterator_base* __it, bool __constant) throw () + _M_attach_local_single(_Safe_iterator_base* __it, bool __constant) noexcept { _Safe_iterator_base*& __its = __constant ? _M_const_local_iterators : _M_local_iterators; @@ -629,7 +629,7 @@ namespace __gnu_debug void _Safe_unordered_container_base:: - _M_detach_local_single(_Safe_iterator_base* __it) throw () + _M_detach_local_single(_Safe_iterator_base* __it) noexcept { // Remove __it from this container's list __it->_M_unlink(); @@ -1233,7 +1233,7 @@ namespace namespace __gnu_debug { _Error_formatter& - _Error_formatter::_M_message(_Debug_msg_id __id) const throw () + _Error_formatter::_M_message(_Debug_msg_id __id) const noexcept { return const_cast<_Error_formatter*>(this) ->_M_message(_S_debug_messages[__id]); @@ -1334,7 +1334,7 @@ namespace __gnu_debug template void _Error_formatter::_M_format_word(char*, int, const char*, _Tp) - const throw () + const noexcept { } void @@ -1346,7 +1346,7 @@ namespace __gnu_debug { } void - _Error_formatter::_M_get_max_length() const throw () + _Error_formatter::_M_get_max_length() const noexcept { } // Instantiations.