From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5597 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: C11 threads Date: Fri, 25 Jul 2014 16:15:22 +0200 Message-ID: <20140725141522.GB10402@port70.net> References: <1406282437.6438.34.camel@eris.loria.fr> <20140725104056.GO9928@port70.net> <1406286404.6438.38.camel@eris.loria.fr> <20140725130438.GA10402@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1406297748 4860 80.91.229.3 (25 Jul 2014 14:15:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jul 2014 14:15:48 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5602-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jul 25 16:15:36 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XAgHX-0005e9-Od for gllmg-musl@plane.gmane.org; Fri, 25 Jul 2014 16:15:35 +0200 Original-Received: (qmail 7400 invoked by uid 550); 25 Jul 2014 14:15:34 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 7392 invoked from network); 25 Jul 2014 14:15:34 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:5597 Archived-At: * Morten Welinder [2014-07-25 09:42:52 -0400]: > > the musl math library currently defines distinct long double [...] > > You cannot compare a "double" function pointer to a "long double" > function pointer. The types are incompatible, even if they have the > same representation. > > Hence I don't believe a C program can even tell if they are the same. > conversion between incompatible function pointers is allowed and i think == should work on converted pointers too: void f(void) {} void g(int x) {} int h() {return f == (void(*)(void))g;}