This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug or feature?


> 
> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]