Bug#503202: libc6-dev: math_errhandling isn't defined anywhere
Aurelien Jarno a écrit :
> 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.
No, see the explanations from the thread. The behaviour of the macro has
to be different if for example -ffast-math is used, but also because
some math functions are provided by gcc.
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
Reply to: