This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Single-precision float version of matherr
- From: Jozef Lawrynowicz <jozef dot l at mittosystems dot com>
- To: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- Cc: "newlib at sourceware dot org" <newlib at sourceware dot org>, nd <nd at arm dot com>
- Date: Mon, 3 Dec 2018 14:56:44 +0000
- Subject: Re: Single-precision float version of matherr
- References: <DB5PR08MB103015B27D5A8EA5434760CE83AE0@DB5PR08MB1030.eurprd08.prod.outlook.com>
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