From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47656 invoked by alias); 8 Jun 2015 14:01:19 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 47647 invoked by uid 89); 8 Jun 2015 14:01:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Message-ID: <5575A029.8010307@redhat.com> Date: Mon, 08 Jun 2015 16:01:00 -0000 From: Florian Weimer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Jonathan Wakely , Torvald Riegel CC: Martin Sebor , Rich Felker , Szabolcs Nagy , GNU C Library Subject: Re: [PATCH] pthread_once hangs when init routine throws an exception [BZ #18435] References: <556B7F10.40209@redhat.com> <556C31DE.4020803@arm.com> <556CA772.2060207@redhat.com> <1433329427.21461.101.camel@triegel.csb> <20150603191444.GM17573@brightrain.aerifal.cx> <556F6012.6090502@redhat.com> <1433404311.21461.231.camel@triegel.csb> <20150608112755.GV12728@redhat.com> In-Reply-To: <20150608112755.GV12728@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-06/txt/msg00274.txt.bz2 On 06/08/2015 01:27 PM, Jonathan Wakely wrote: > A disadvantage of returning void* is that if we do change what it > returns then code using it still compiles and links. If we change it > from returning pthread_xxx_t* to something else, or just remove it > entirely, then code using it fails earlier, at compile-time. C++ doesn't have implicit conversion from void * to pthread_mutex_t etc., so existing code (which presumably doesn't have cast) would fail to compile. I think. -- Florian Weimer / Red Hat Product Security