This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Set errno in expm1{,f} / log1p{,f}
- From: "Craig Howland via newlib" <newlib at sourceware dot org>
- To: <newlib at sourceware dot org>
- Date: Tue, 9 Jul 2019 12:06:13 -0400
- Subject: Re: Set errno in expm1{,f} / log1p{,f}
- References: <5D2498C8.3070605@riscy-ip.com>
- Reply-to: Craig Howland <howland at LGSInnovations dot com>
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