Bug#279294: libc6: feclearexcept() error on CPUs with SSE
Package: libc6
Version: 2.3.2.ds1-18
Severity: normal
Tags: fixed-upstream, patch
The upstream bug report is
http://sources.redhat.com/bugzilla/show_bug.cgi?id=10
A small patch fixes a problem with __feclearexcept touching bits
other than the status bits. The upstream CVS version 1.9 of
libc/sysdeps/i386/fpu/fclrexcpt.c fixes the problem:
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/i386/fpu/fclrexcpt.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- libc/sysdeps/i386/fpu/fclrexcpt.c 2003/09/25 05:57:16 1.8
+++ libc/sysdeps/i386/fpu/fclrexcpt.c 2004/02/09 08:19:49 1.9
@@ -1,5 +1,5 @@
/* Clear given exceptions in current floating-point environment.
- Copyright (C) 1997,99,2000, 2001, 2003 Free Software Foundation, Inc.
+ Copyright (C) 1997,99,2000, 2001, 2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -50,7 +50,7 @@
__asm__ ("stmxcsr %0" : "=m" (*&xnew_exc));
/* Clear the relevant bits. */
- xnew_exc &= excepts ^ FE_ALL_EXCEPT;
+ xnew_exc &= ~excepts;
/* Put the new data in effect. */
__asm__ ("ldmxcsr %0" : : "m" (*&xnew_exc));
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: LANG=C, LC_CTYPE=C
Versions of packages libc6 depends on:
ii libdb1-compat 2.1.3-7 The Berkeley database routines [gl
-- no debconf information
Reply to: