Re: Set errno in expm1{,f} / log1p{,f}

Jeff Johnston <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <CAOox84ufN1hdwUpFAQKVAVz9gP1vNi-2ME5QEeG27ossoBhVLw@mail.gmail.com>
Patch applied.

-- Jeff J.

On Tue, Jul 9, 2019 at 12:06 PM Craig Howland via newlib <
[email protected]> wrote:

> On 7/9/19 9:38 AM, Joern Wolfgang Rennecke wrote:
> > I find that the gcc test gcc.dg/torture/pr68264.c fails because expm1 /
> log1p
> > fail to set errno.
> > Fixed with the attached patch.
> > OK to commit?
> It is interesting to note that the Linux log1p man page says "These
> functions do
> not set errno."  This is in conflict with the C standard and POSIX which
> call
> for the normal errno behavior for it. Perhaps this explains why errno was
> not
> being set.
>
> (Changes look good to me, but I don't have authority to approve committal.)
>
> Craig
>
>
>
>
>
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.