This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug or feature?
- To: martin dot kahlert at mchp dot siemens dot de (Martin Kahlert)
- Subject: Re: Bug or feature?
- From: hjl at lucon dot org (H.J. Lu)
- Date: Wed, 4 Nov 1998 08:17:46 -0800 (PST)
- Cc: egcs at cygnus dot com
>
> Hi,
> please give me a hint:
> Is this a bug or a feature:
> The pow funcion doesn't reset errno to 0, if all is o.k.
> See the following prog:
>
> gcc -v:
> Reading specs from
> /sw/egcs/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.57/specs
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.
H.J.