This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug or feature?
- To: hjl at lucon dot org (H.J. Lu)
- Subject: Re: Bug or feature?
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Wed, 4 Nov 98 15:15:45 PST
- Cc: martin dot kahlert at mchp dot siemens dot de, egcs at cygnus dot com
> > The pow funcion doesn't reset errno to 0, if all is o.k.
> It is not an egcs question.
>
> 1. The math library in libc 5 doesn't handle errno very well.
> 2. In glibc 2, you have to disable inline math to get errno right.
Um, errno is not supposed to be reset to 0 on success! This is
the correct behavior.