[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r3217 - in /branches/eglibc-2_5/ports: ChangeLog.eglibc sysdeps/powerpc/nofpu/feholdexcpt.c
- To: commits@xxxxxxxxxx
- Subject: [commits] r3217 - in /branches/eglibc-2_5/ports: ChangeLog.eglibc sysdeps/powerpc/nofpu/feholdexcpt.c
- From: dan@xxxxxxxxxx
- Date: Mon, 20 Aug 2007 21:14:03 -0000
Author: dan
Date: Mon Aug 20 14:14:03 2007
New Revision: 3217
Log:
Backport:
2007-05-23 Steven Munroe <sjmunroe@xxxxxxxxxx>
* sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Disable
exceptions. Use the updated env in fesetenv().
Add libm_hidden_def.
Modified:
branches/eglibc-2_5/ports/ChangeLog.eglibc
branches/eglibc-2_5/ports/sysdeps/powerpc/nofpu/feholdexcpt.c
Modified: branches/eglibc-2_5/ports/ChangeLog.eglibc
==============================================================================
--- branches/eglibc-2_5/ports/ChangeLog.eglibc (original)
+++ branches/eglibc-2_5/ports/ChangeLog.eglibc Mon Aug 20 14:14:03 2007
@@ -1,3 +1,11 @@
+2007-08-20 Daniel Jacobowitz <dan@xxxxxxxxxxxxxxxx>
+
+ Backport:
+ 2007-05-23 Steven Munroe <sjmunroe@xxxxxxxxxx>
+ * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Disable
+ exceptions. Use the updated env in fesetenv().
+ Add libm_hidden_def.
+
2007-08-14 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
Backport:
Modified: branches/eglibc-2_5/ports/sysdeps/powerpc/nofpu/feholdexcpt.c
==============================================================================
--- branches/eglibc-2_5/ports/sysdeps/powerpc/nofpu/feholdexcpt.c (original)
+++ branches/eglibc-2_5/ports/sysdeps/powerpc/nofpu/feholdexcpt.c Mon Aug 20 14:14:03 2007
@@ -1,6 +1,6 @@
/* Store current floating-point environment and clear exceptions
(soft-float edition).
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2007 Free Software Foundation, Inc.
Contributed by Aldy Hernandez <aldyh@xxxxxxxxxx>, 2002.
This file is part of the GNU C Library.
@@ -33,11 +33,12 @@
u.fenv = *envp;
/* Clear everything except the rounding mode. */
u.l[0] &= 0x3;
-
- /* ?? Should we clear the disabled exceptions as well ?? */
+ /* Disable exceptions */
+ u.l[1] = FE_ALL_EXCEPT;
/* Put the new state in effect. */
- fesetenv (envp);
+ fesetenv (&u.fenv);
return 0;
}
+libm_hidden_def (feholdexcept)