This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Single-precision float version of matherr


On Mon, 3 Dec 2018 12:22:38 +0000
Wilco Dijkstra <Wilco.Dijkstra@arm.com> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]