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

2008-10-23 Thread Matthew Vernon
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

Regards,

Matthew

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20-2-macpro-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages libc6-dev depends on:
ii  libc6  2.3.6.ds1-13etch7 GNU C Library: Shared libraries
ii  linux-kernel-headers   2.6.18-7  Linux Kernel Headers for developme

Versions of packages libc6-dev recommends:
ii  gcc [c-compiler]  4:4.1.1-15 The GNU C compiler
ii  gcc-3.4 [c-compiler]  3.4.6-5The GNU C compiler
ii  gcc-4.1 [c-compiler]  4.1.1-21   The GNU C compiler

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2008-10-23 Thread Aurelien Jarno
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.

-- 
  .''`.  Aurelien Jarno | GPG: 1024D/F1BCDB73
 : :' :  Debian developer   | Electrical Engineer
 `. `'   [EMAIL PROTECTED] | [EMAIL PROTECTED]
   `-people.debian.org/~aurel32 | www.aurel32.net



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2008-10-23 Thread Matthew Vernon

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




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2008-10-23 Thread Aurelien Jarno
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
 `. `'   [EMAIL PROTECTED] | [EMAIL PROTECTED]
   `-people.debian.org/~aurel32 | www.aurel32.net



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]