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

[commits] r10513 - in /fsf/glibc-2_11-branch/libc: ChangeLog sysdeps/sh/sh4/fpu/feholdexcpt.c version.h



Author: eglibc
Date: Thu May 20 00:08:22 2010
New Revision: 10513

Log:
Import glibc-2.11 for 2010-05-20

Modified:
    fsf/glibc-2_11-branch/libc/ChangeLog
    fsf/glibc-2_11-branch/libc/sysdeps/sh/sh4/fpu/feholdexcpt.c
    fsf/glibc-2_11-branch/libc/version.h

Modified: fsf/glibc-2_11-branch/libc/ChangeLog
==============================================================================
--- fsf/glibc-2_11-branch/libc/ChangeLog (original)
+++ fsf/glibc-2_11-branch/libc/ChangeLog Thu May 20 00:08:22 2010
@@ -1,3 +1,8 @@
+2010-05-12  Andrew Stubbs  <ams@xxxxxxxxxxxxxxxx>
+
+	* sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
+	exceptions.  Return 0.
+
 2010-05-07  Roland McGrath  <roland@xxxxxxxxxx>
 
 	* elf/ldconfig.c (main): Add a const.

Modified: fsf/glibc-2_11-branch/libc/sysdeps/sh/sh4/fpu/feholdexcpt.c
==============================================================================
--- fsf/glibc-2_11-branch/libc/sysdeps/sh/sh4/fpu/feholdexcpt.c (original)
+++ fsf/glibc-2_11-branch/libc/sysdeps/sh/sh4/fpu/feholdexcpt.c Thu May 20 00:08:22 2010
@@ -1,5 +1,6 @@
 /* Store current floating-point environment and clear exceptions.
-   Copyright (C) 1997, 1998, 1999, 2000, 2005 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998, 1999, 2000, 2005, 2010
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -29,10 +30,15 @@
   _FPU_GETCW (temp);
   envp->__fpscr = temp;
 
+  /* Clear the status flags.  */
+  temp &= ~FE_ALL_EXCEPT;
+
   /* Now set all exceptions to non-stop.  */
-  temp &= ~FE_ALL_EXCEPT;
+  temp &= ~(FE_ALL_EXCEPT << 5);
+
   _FPU_SETCW (temp);
 
-  return 1;
+  /* Success.  */
+  return 0;
 }
 libm_hidden_def (feholdexcept)

Modified: fsf/glibc-2_11-branch/libc/version.h
==============================================================================
--- fsf/glibc-2_11-branch/libc/version.h (original)
+++ fsf/glibc-2_11-branch/libc/version.h Thu May 20 00:08:22 2010
@@ -1,4 +1,4 @@
 /* This file just defines the current version number of libc.  */
 
 #define RELEASE "stable"
-#define VERSION "2.11.1"
+#define VERSION "2.11.2"