From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6265 Path: news.gmane.org!not-for-mail From: Sergey Dmitrouk Newsgroups: gmane.linux.lib.musl.general Subject: Why *l math functions are just skipped for some targets? Date: Tue, 7 Oct 2014 19:44:15 +0300 Message-ID: <20141007164415.GA10696@zx-spectrum.accesssoftek.com> 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 1412700282 3317 80.91.229.3 (7 Oct 2014 16:44:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2014 16:44:42 +0000 (UTC) To: Original-X-From: musl-return-6278-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 07 18:44:35 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 1XbXsG-0003Bb-Ld for gllmg-musl@plane.gmane.org; Tue, 07 Oct 2014 18:44:32 +0200 Original-Received: (qmail 20173 invoked by uid 550); 7 Oct 2014 16:44:32 -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 20165 invoked from network); 7 Oct 2014 16:44:31 -0000 Content-Disposition: inline Xref: news.gmane.org gmane.linux.lib.musl.general:6265 Archived-At: Hi, files like __fpclassifyl.c omit implementation for corresponding functions on platforms where sizeof(long double) == sizeof(double). This is fine when musl is compiled at least with -O1 and compiler omits calls to non-existing functions, but if one builds debug version without optimizations, some executables end up having unresolved symbols for functions like __fpclassifyl(). This causes some inconvenience. Also, optimizing compilers are not intended to allow such hacks, it just happens to be so. Is there any reason to not provide some stub functions? I can image small size is the reason, but not sure it justifies unexpected unresolved symbols. At least a comment in place of absent functions would be helpful. Best regards, Sergey