Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20141007171354.GL23797@brightrain.aerifal.cx>
Date: Tue, 7 Oct 2014 13:13:54 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: Why *l math functions are just skipped for some targets?

On Tue, Oct 07, 2014 at 07:44:15PM +0300, Sergey Dmitrouk wrote:
> 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.

I'm pretty sure it's just an omission that went unnoticed, not any
attempt to optimize for size via hacks. I'll look into getting it
fixed.

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.