ISO C99: Macros MATH_ERRNO, MATH_ERREXCEPT, math_errhandling

Ulrich Drepper drepper@redhat.com
Mon Jun 5 09:18:00 GMT 2000


Andreas Jaeger <aj@suse.de> writes:

> We need to define MATH_ERRNO and MATH_ERREXCEPT as macros when
> <math.h> is included.  I do think we've got to change glibc for this.

This should be coordinated with gcc.  This is why I won't do this now.

> Getting support for this in gcc seems to be the right thing - but we
> do need also program accordingly in glibc (if math_errhandling is 3,
> all math functions have to honour this).

This is should be the case for all library functions.  Gcc will only
set the variable to a different value if said so and in these
situations it can use inline functions etc.  Also, the __FAST_MATH__
stuff should probably also have influence.

> Uli, please add this to your glibc 2.2 ToDo list.

OK, done.  But it's nothing I would delay a release for.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Libc-hacker mailing list