This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.16-ports-merge-702-gda66ca0


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  da66ca0fc0d099b381b0bee96eae9be378417e0e (commit)
      from  886ce148c046f5ecc0b2c60f2c6858c0722d601f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=da66ca0fc0d099b381b0bee96eae9be378417e0e

commit da66ca0fc0d099b381b0bee96eae9be378417e0e
Author: Carlos O'Donell <carlos@systemhalted.org>
Date:   Mon Nov 19 00:44:00 2012 -0500

    hppa: Fix fesetenv for FE_DFL_ENV.
    
    Switching back to FE_DFL_ENV should reset the FPU to the state
    as it was at the start of the program.

diff --git a/ports/ChangeLog.hppa b/ports/ChangeLog.hppa
index 4088793..3f7bd6e 100644
--- a/ports/ChangeLog.hppa
+++ b/ports/ChangeLog.hppa
@@ -1,5 +1,7 @@
 2012-11-18  Carlos O'Donell  <carlos@systemhalted.org>
 
+	* sysdeps/hppa/fpu/fesetenv.c: Reset FPU to default for FE_DFL_ENV.
+
 	* sysdeps/hppa/get-rounding-mode.h: New file.
 	* sysdeps/hppa/fpu/fegetround.c: Use get_rounding_mode.
 
diff --git a/ports/sysdeps/hppa/fpu/fegetround.c b/ports/sysdeps/hppa/fpu/fegetround.c
index 70d2e47..d603e66 100644
--- a/ports/sysdeps/hppa/fpu/fegetround.c
+++ b/ports/sysdeps/hppa/fpu/fegetround.c
@@ -1,5 +1,5 @@
 /* Return current rounding direction.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by David Huggins-Daines <dhd@debian.org>, 2000
 
@@ -17,17 +17,10 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include <fenv.h>
+#include <get-rounding-mode.h>
 
 int
 fegetround (void)
 {
-  union { unsigned long long l; unsigned int sw[2] } s;
-
-  /* Get the current status word. */
-  __asm__ ("fstd %%fr0,0(%1)	\n\t" 
-	   "fldd 0(%1),%%fr0	\n\t" 
-           : "=m" (s.l) : "r" (&s.l));
-
-  return (s.sw[0] & FE_DOWNWARD);
+  return get_rounding_mode ();
 }

-----------------------------------------------------------------------

Summary of changes:
 ports/ChangeLog.hppa                |    2 ++
 ports/sysdeps/hppa/fpu/fegetround.c |   13 +++----------
 2 files changed, 5 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]