Re: Single-precision float version of matherr

Jozef Lawrynowicz <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <20181203145644.797c641f@jozef-Aspire-VN7-793G>
On Mon, 3 Dec 2018 12:22:38 +0000
Wilco Dijkstra <[email protected]> wrote:

> Hi,
> 
> Rather than keeping it, consider just removing all support for matherr since it is
> obsolete (http://man7.org/linux/man-pages/man3/matherr.3.html):
> 
>        "Note: the mechanism described in this page is no longer supported by
>        glibc.  Before glibc 2.27, it had been marked as obsolete.  Since
>        glibc 2.27, the mechanism has been removed altogether.  New
>        applications should use the techniques described in math_error(7) and
>        fenv(3).  This page documents the matherr() mechanism as an aid for
>        maintaining and porting older applications."
> 
> I'm sure no embedded application uses matherr since it is a historical
> System V oddity, so nobody will ever miss it. Note that the recently rewritten
> math functions in newlib do not use matherr at all.
> 
> Wilco

Hi Wilco,

Thanks for the tip.
I also noticed that other embedded toolchains (for MSP430 at least) do not have
a similar concept to matherr and instead just rely on errno. Good to hear it
can be removed altogether.

I presume it's not even worth keeping the old code available through a macro
such as __OBSOLETE_MATHERR?

Jozef
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.