Re: [PATCH] Remove matherr, and SVID and X/Open math library configurations

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Jan 22 20:51, Jozef Lawrynowicz wrote:
> On Wed, 16 Jan 2019 09:50:00 +0100
> Corinna Vinschen <[email protected]> wrote:
> 
> > Your patch was fine, just the problem of stopping to export a symbol
> > from Cygwin worried me.
> > 
> > We don't want to break an older application to run just because we
> > removed a function from the DLL.  On reading your mail and further
> > reading up on matherr it seems this isn't really a problem.
> > 
> > If we *really* get a complaint on the Cygwin mailing list, we can
> > resurrect matherr just as an exportable symbol for Cygwin.
> 
> Ok, sounds good.
> 
> > Can you please resend your patch?
> 
> I've attached the original patch (0001-*), but also 3 further patches which
> make some additional improvements to the float math functions.
> 
> 0002-Newlib-Remove-HUGE_VAL-definition-from-libm-math-fun.patch
> This patch removes the definitions of HUGE_VAL from some of the float math
> functions. HUGE_VAL is defined in newlib/libc/include/math.h, so it is not
> necessary to have a further definition in the math functions.
> 
> 0003-Newlib-Use-HUGE_VALF-instead-of-HUGE_VAL-in-single-p.patch
> This patch replaces instances of "(float).*HUGE_VAL" with a direct usage of
> HUGE_VALF, which is also defined in math.h.
> 
> 0004-Newlib-Use-nanf-instead-of-nan-in-single-precision-f.patch
> This patch further reduces code size for a few single-precision float math
> functions, by using nanf() instead of nan() where required.
> 
> I've regtested the patches with the GCC testsuite for arm-unknown-eabi, and I
> built Cygwin and regtested it with "make check".

All patches applied.  I added a bit of your text to your patch
description, just the headline is a bit terse.  It would be nice
for future patches to read the description not only in the mail,
but also in the patch itself :)

Oh, and I added a bit of Cygwin version paraphernalia to your first
patch.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxIOjIACgkQ9TYGna5E
T6AtPw/8CxjXFE3swITcjNbX+HquyA81eONcUpUnNzdcrY3wIQ/XW+MJXKH6ccGJ
aPH6Ja0QuX8jG2szEx21k7+1FY0ctsK4W/sokxIuQq0sc4yX3GOdGbesg0WavNxs
lI/copuV6rbLbCrn1iJXoI2fimbu6Il/pg3Czs17pbQmR6bMEjs1Q18QJqYfE2WY
zct7tSgecIE95ruioGOOCx0wM+n/oz4a6g3Pi/kECOLRFoA6JmbX3A//covu2p9C
SevB+kirhyMaX0zY7H/bqj44RnLZrFzW6Ftdn5v9fUSW+hygDi2XdFvz6R8ZGID1
0b/kPWV72C0YO1cPfwbEdxMYfl1JZFSntqO/19Ib6B8VAGMkkl3gkXgHBoE4pbMt
uO/BuS5v1okJOGoJjpj+u2KXKvdqH+BER2kbjK9EOnJW6EAFV1iC8A7IHbf/11tY
9XUl+bT2NJ5m5cByi/CQhgUPydI1n+U2HQ1kNknTkOT3Fj93HQVUrpJzCYsgGb7B
wCvqHFWONivE4eNP3/+uRoznwXMYn+FGIB/eUpXYf5K87VdSdk7VFToQFRSdUa0T
GuoMfC35bsDIeZYb7RUa5lQ+iRDS47jXRymLmJ4F0jc84wYXdBrCAdQNhFbG1yqO
YFsAny+SZGckEkpwC7hlbUINWbXPn8L2yBFoJDGeYoy7+NNmoHs=
=+Tef
-----END PGP SIGNATURE-----
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.