From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id EEA603890400 for ; Wed, 21 Apr 2021 11:39:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EEA603890400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-45-XH9yywOrO9e1M45g_MsA_A-1; Wed, 21 Apr 2021 07:38:57 -0400 X-MC-Unique: XH9yywOrO9e1M45g_MsA_A-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 43A1D881D73; Wed, 21 Apr 2021 11:38:06 +0000 (UTC) Received: from localhost (unknown [10.33.36.164]) by smtp.corp.redhat.com (Postfix) with ESMTP id A36D4196E3; Wed, 21 Apr 2021 11:38:05 +0000 (UTC) Date: Wed, 21 Apr 2021 12:38:04 +0100 From: Jonathan Wakely To: Thomas Rodgers Cc: David Edelsohn , Jakub Jelinek , gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org Subject: Re: GCC 11.1 Release Candidate available from gcc.gnu.org Message-ID: <20210421113804.GU3008@redhat.com> References: <20210420152439.GR1179226@tucnak> <6ac731c557415b46b04613d9b908df2f@appliantology.com> <45de03629a536c0000c9b47bb79d6601@appliantology.com> MIME-Version: 1.0 In-Reply-To: <45de03629a536c0000c9b47bb79d6601@appliantology.com> X-Clacks-Overhead: GNU Terry Pratchett X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 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: Wed, 21 Apr 2021 11:39:13 -0000 On 20/04/21 22:12 -0700, Thomas Rodgers wrote: >@@ -86,6 +88,24 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION > } > } > >+ _GLIBCXX_ALWAYS_INLINE bool >+ _M_try_acquire() noexcept >+ { >+ for (;;) >+ { >+ auto __err = sem_trywait(&_M_semaphore); >+ if (__err && (errno == EINTR)) >+ continue; >+ else if (__err && (errno == EAGAIN)) >+ return false; >+ else if (__err) >+ std::terminate(); >+ else >+ break; >+ } >+ return true; >+ } >+ > _GLIBCXX_ALWAYS_INLINE void > _M_release(std::ptrdiff_t __update) noexcept > { Please just commit this part to trunk and gcc-11, not the macro renaming (as that's been fixed by Jakub already).