From patchwork Thu Aug 1 21:11:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1968043 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=gRONLtU9; 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 4WZhWt2HZGz1yZl for ; Fri, 2 Aug 2024 07:13:14 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 729E6385DDDC for ; Thu, 1 Aug 2024 21:13:12 +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 ESMTP id 78271385DDF1 for ; Thu, 1 Aug 2024 21:12:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 78271385DDF1 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 78271385DDF1 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=1722546724; cv=none; b=vzX8169wxCxWLBt92Al0vv3C1MiKO5PTN42SFYxliYP7ZZjSfyApI5S/FgadiGZQglruDfshGFs3tDLXL+RPyoV+y7r4Kcc0Ge1ioamgz9AdV+ztZGXsl9Bqhq5V5E+ea8Th3KuUJbijnsCZzFXf2Y63EWj07PhR2V9hChTZQSs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722546724; c=relaxed/simple; bh=GjCYSllc7MlTyeap77mjld/IgKvwamolVgtp6nUKyZo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=OdReANYlMZvv4Lo5EWTJbQRX6vTs+5qXpjs9Me0/7kCgK7NcgWdCTIBSDg9LeidHisk6Y5Nl9pCSyZ6BRJtMF5W3wHJWVx5hB4S9OVfrrRiDqUcBTgkGgc3zYjteFVWGKnT+cVZ5bRIDO5v7QYjIWUHSk6+qo2jnvbyvzqJfcmY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1722546723; 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=N2BFpVzWB1NSl0tiZaPVodV4s8fu2+rJTVB79cRVPKU=; b=gRONLtU92MY8HDuzShPmMy5EhHRm4PGZat5KL7drduXM5JJ/upUzqOUGjRxhUrhJcMb0qT s0ROnhKySBhUbaQC4jz1v1XbQZstV847NZhJs93Gc/EPxazISA+2NVWlZTvNjD39ebvcQg pkzGtwmAHBuA+KwFy0Hc6Ugdlk+olL8= Received: from mx-prod-mc-04.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-261-OQM2GamEMiKpr98-M_BuIQ-1; Thu, 01 Aug 2024 17:12:00 -0400 X-MC-Unique: OQM2GamEMiKpr98-M_BuIQ-1 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 619961955D44; Thu, 1 Aug 2024 21:11:59 +0000 (UTC) Received: from localhost (unknown [10.42.28.21]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 819D91955E80; Thu, 1 Aug 2024 21:11:58 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Remove unused parameters from atomic impl details Date: Thu, 1 Aug 2024 22:11:53 +0100 Message-ID: <20240801211156.386454-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.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_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP 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: * include/bits/atomic_base.h (__atomic_impl::compare_exchange_weak): Remove unused parameter. (__atomic_impl::compare_exchange_strong): Likewise. --- libstdc++-v3/include/bits/atomic_base.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libstdc++-v3/include/bits/atomic_base.h b/libstdc++-v3/include/bits/atomic_base.h index 1c2367b39b6..ae6819f119b 100644 --- a/libstdc++-v3/include/bits/atomic_base.h +++ b/libstdc++-v3/include/bits/atomic_base.h @@ -1118,8 +1118,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_ALWAYS_INLINE bool compare_exchange_weak(_Tp* __ptr, _Val<_Tp>& __expected, _Val<_Tp> __desired, memory_order __success, - memory_order __failure, - bool __check_padding = false) noexcept + memory_order __failure) noexcept { return __atomic_impl::__compare_exchange<_AtomicRef>( *__ptr, __expected, __desired, true, __success, __failure); @@ -1129,8 +1128,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_ALWAYS_INLINE bool compare_exchange_strong(_Tp* __ptr, _Val<_Tp>& __expected, _Val<_Tp> __desired, memory_order __success, - memory_order __failure, - bool __ignore_padding = false) noexcept + memory_order __failure) noexcept { return __atomic_impl::__compare_exchange<_AtomicRef>( *__ptr, __expected, __desired, false, __success, __failure);