[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#503202: libc6-dev: math_errhandling isn't defined anywhere



Aurelien Jarno wrote:
reassign 503202 gcc-4.3
thanks

Matthew Vernon a écrit :
Package: libc6-dev
Version: 2.3.6.ds1-13etch7
Severity: important

Hi,

math.h has the following in it:
/* Bitmasks for the math_errhandling macro.  */
# define MATH_ERRNO     1       /* errno set by math functions.  */
# define MATH_ERREXCEPT 2 /* Exceptions raised by math functions. */

but no-where is math_errhandling actually defined! This breaks code wanting to check how domain errors in floating-point code are handled (amongst other things). Section 7.12.9 of C99 discusses MATH_ERRNO, MATH_ERREXCEPT, and math_errhandling.

SuSv3 also requires math_errhandling to be present:
http://www.opengroup.org/onlinepubs/009695399/basedefs/math.h.html

This is actually a compiler problem. See the footnotes on
http://gcc.gnu.org/c99status.html . Reassigning the bug accordingly.

gcc on Mac OS X gets this right (the libc there defines math_errhandling), which is why I suspected glibc to be the problem. I infer from that, that glibc could fix this without needing changes to gcc?

Matthew




Reply to: