From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx.kolabnow.com (mx.kolabnow.com [95.128.36.41]) by sourceware.org (Postfix) with ESMTPS id 7F00539A1400; Fri, 4 Jun 2021 19:52:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7F00539A1400 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=appliantology.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=appliantology.com Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id 630661395; Fri, 4 Jun 2021 21:52:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s= dkim20160331; t=1622836326; x=1624650727; bh=u2wu/xQz1lYiI9szf6Q PweIcpUGs8kbVRNqs3NxRG3k=; b=jt7shj7Di95GiPtB3gGMQ0d+PJsIUl9HKaO NcXGDuH10U56QabBu0iLK0Z+ljRHHyPvrXglJU76H6rtDIXye773fYEfHmOBj+gK lRlfXeu6gYNoXk51QwRsnhTAqyfKyrYNRb5C5Xv85SgPIV7kqev9jlSebbCAyN8H u6EWUmeKtxepqMCm+X4PPgl2/Kn9cCIIcQeq5n6QUtyDAsG3Wh0Jf2PHLUu7VPQx uYHRZtMlNg/Hh7p5FTmTXTpKwLGMOUfAL2rSDtCIRFe7L0bzM5CKbLahjXWL6zAT TvI35gxLOfYAgnkE4BoZ470aWy5U3wqkKRIKCvEmiJL+Ex++tIeDieSINvr5Bw2K jM+dd0iDLpcoJkwXcXbew6LN+Trv1uy3rG5nF0Ydl371VS7EbgQIHdZbw/MmlkIm dFXGWqhT0WueLcDCaZhZLZ9Tt+iMcR1m9r3lXTeC3jLOU7DQ+ubfQOHJ+HMpiYCj UHQ4Or6oTaTCKsjqjxWTHjjQEVleXR7fLd8V/o/lTJxkNU5VkJMevV0BXKAuOGSm dCOMqOtnhv0PJ8FGvNURFb6dPNh25GHByFzm6x1EWxtVdcFCv2CbcyAJIvTABuYE dhL8LYOvljVwj1gc9EWxUj502ZKm5JwVz3v+6b3MZ6KmE0uQf1MNudmjuCXPToWz 5VzQt4+0= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.2 Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out002.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9rMItnTaL8Yr; Fri, 4 Jun 2021 21:52:06 +0200 (CEST) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id B075EB46; Fri, 4 Jun 2021 21:52:06 +0200 (CEST) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx003.mykolab.com (Postfix) with ESMTPS id 1D655429C; Fri, 4 Jun 2021 21:52:04 +0200 (CEST) From: Thomas Rodgers To: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org Cc: trodgers@redhat.com, Thomas Rodgers Subject: [PATCH] [libstdc++] Remove unused hasher instance. Date: Fri, 4 Jun 2021 12:51:56 -0700 Message-Id: <20210604195156.706986-1-rodgert@appliantology.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2021 19:52:20 -0000 This is a remnant of poorly executed refactoring. libstdc++-v3/ChangeLog: * include/std/barrier (__tree_barrier::_M_arrive): Remove unnecessary hasher instantiation. --- libstdc++-v3/include/std/barrier | 1 - 1 file changed, 1 deletion(-) diff --git a/libstdc++-v3/include/std/barrier b/libstdc++-v3/include/std/barrier index fd61fb4f9da..4210e30d1ce 100644 --- a/libstdc++-v3/include/std/barrier +++ b/libstdc++-v3/include/std/barrier @@ -103,7 +103,6 @@ It looks different from literature pseudocode for two main reasons: static_cast<__barrier_phase_t>(__old_phase_val + 2); size_t __current_expected = _M_expected; - std::hash __hasher; __current %= ((_M_expected + 1) >> 1); for (int __round = 0; ; ++__round) -- 2.26.2