Re: Wrong unconditional dependency on nanl

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Oct 10 17:36, Corinna Vinschen wrote:
> On Oct 10 17:31, Corinna Vinschen wrote:
> > On Oct 10 11:22, Craig Howland wrote:
> > > On 10/10/2018 10:52 AM, Corinna Vinschen wrote:
> > > > On Oct 10 15:48, Christophe Lyon wrote:
> > > > > On Wed, 10 Oct 2018 at 11:41, Corinna Vinschen <[email protected]> wrote:
> > > > > > On Oct  8 15:06, Christophe Lyon wrote:
> > > > > > 
> > > > > It does help on aarch64-elf, but a change to rdimon.specs is required
> > > > > because libc now depends on libm: this can be seen when compiling a
> > > > > C++ hello.cpp.
> > > > Hmm, that's an interesting point.  What I don't understand is why this
> > > > dependency wasn't already visible before.  strtod.c and wcstod.c call
> > > > nan() and nanf(), vfprintf.c and vfwprintf.c call nanf().  Why is a
> > > > call to nanl() different?
> > > The nanl() call was only added perhaps a few weeks ago.  At that time we
> > > missed the thought that it comes from libm.  We'd need to add it to
> > > newlib/Makefile to be copied like s_nan and sf_nan presently are.
> > 
> > Yeah, just found this myself.  nan/nanf are pulled in via newlib's
> > top-level Makefile.am:
> > 
> >   MATHOBJS_IN_LIBC = ...
> > 
> > Pulling in nanl is a problem because it's build depends on
> > HAVE_LONG_DOUBLE.
> > 
> > Maybe we should really just use __builtin_nanl in strtorx.c...?
> 
> ...and build strtorx.c only if HAVE_LONG_DOUBLE, just like strtold.c and
> wcstold.c.

I pushed three patches to handle all of the above.  Please give them
a try.


Thanks,
Corinna

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

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlu+Iz8ACgkQ9TYGna5E
T6Awow//UQQ6o7986eWcZQHW7eqRDgSoBreUTK2w5vPrPNwqZRqfNMESj2kOTbXg
03hYbmCJUzyAkabxpAbH3Pn5v2UIu2MiKsUowx3EofOJ4kQSYOnzC46k7Rap32i8
LWwN5w48l8cBqcvkx5s5pjey5usDNp89oCaibeGhk7+piznWxxcQuDL7Dxr4TvRN
s3vD85ED8Hh3UW+cb4PylwBYu/kpKa6FCo0BBoQOAtH4AfQP8Wag3VYC5rneyiCH
Ke0MJBUUfT/8XV5w7f6/u29mGHxD4U/igVdNzLl6WnNc8pzFZU3WlwbgXMSrnYea
+2b6EiVoJuD4ZfVSjXxeQePIqDMAcPe2NZX/qw5r6aizW4pMFne2X/OGdh/c74+D
DJ0KTNw9JCxj+O6cbcDPAk8WpDOuc6H4uimR30hGvWGhEnpMmd9dYYG0rv4RfX3S
JNtf3sDDGdRtbbbF0KMxWXMn0XuO73UTBv4xRoxSGnVKW6nZsxHDWhZlu9rZKtik
eIlr8k0X/dGvDZtkLNC8K0QfWLj6oOvQQNVrGo/9TZ8/IkR9Dd3m+cJOEGm9MUOX
9GKRwm2+MQe3AqrYxvsnjLvkVp3FXYQk2wvFxT7BdNCXu5Nozkl10zx5JOfFnFKA
vILGuQHn5HABX4A4STHH/QsxcRyIxiiMZNxulBVsuvIi2AEsjVU=
=1AQ/
-----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.