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-357-g15055a1


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  15055a1cd7e2c249093a5f6d57eca817767d8b85 (commit)
       via  2d48610df228ee55736f0ad965d28fa1d82ebe2e (commit)
      from  27ed6484ecc852cf9a85a4e9202c6f63b8bcd568 (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=15055a1cd7e2c249093a5f6d57eca817767d8b85

commit 15055a1cd7e2c249093a5f6d57eca817767d8b85
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Mon Sep 24 17:52:18 2012 -0400

    ia64: define new get-rounding-mode.h header
    
    The new strtod function wants rounding information from the C lib, so
    move the guts of the ia64 version into a header file for it to use.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

diff --git a/ports/ChangeLog.ia64 b/ports/ChangeLog.ia64
index 3566b37..39ec5ff 100644
--- a/ports/ChangeLog.ia64
+++ b/ports/ChangeLog.ia64
@@ -1,5 +1,11 @@
 2012-09-24  Mike Frysinger  <vapier@gentoo.org>
 
+	* ports/sysdeps/ia64/fpu/fegetround.c (fegetround): Move contents
+	of function to ...
+	* ports/sysdeps/ia64/fpu/get-rounding-mode.h: ... here.
+
+2012-09-24  Mike Frysinger  <vapier@gentoo.org>
+
 	* sysdeps/ia64/Makeconfig: New file.
 
 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
diff --git a/ports/sysdeps/ia64/fpu/fegetround.c b/ports/sysdeps/ia64/fpu/fegetround.c
index e672f61..403aadb 100644
--- a/ports/sysdeps/ia64/fpu/fegetround.c
+++ b/ports/sysdeps/ia64/fpu/fegetround.c
@@ -1,5 +1,5 @@
 /* Return current rounding direction.
-   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1999-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Christian Boissat <Christian.Boissat@cern.ch>, 1999.
 
@@ -17,14 +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)
 {
-  fenv_t fpsr;
-
-  __asm__ __volatile__ ("mov.m %0=ar.fpsr" : "=r" (fpsr));
-
-  return (fpsr >> 10) & 3;
+  return get_rounding_mode ();
 }
diff --git a/ports/sysdeps/ia64/fpu/fegetround.c b/ports/sysdeps/ia64/fpu/get-rounding-mode.h
similarity index 74%
copy from ports/sysdeps/ia64/fpu/fegetround.c
copy to ports/sysdeps/ia64/fpu/get-rounding-mode.h
index e672f61..1e18473 100644
--- a/ports/sysdeps/ia64/fpu/fegetround.c
+++ b/ports/sysdeps/ia64/fpu/get-rounding-mode.h
@@ -1,5 +1,5 @@
-/* Return current rounding direction.
-   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+/* Return current rounding direction within libc.  IA64 version.
+   Copyright (C) 1999-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Christian Boissat <Christian.Boissat@cern.ch>, 1999.
 
@@ -17,10 +17,15 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#ifndef IA64_GET_ROUNDING_MODE_H
+#define IA64_GET_ROUNDING_MODE_H	1
+
 #include <fenv.h>
 
-int
-fegetround (void)
+/* Return the floating-point rounding mode.  */
+
+static inline int
+get_rounding_mode (void)
 {
   fenv_t fpsr;
 
@@ -28,3 +33,5 @@ fegetround (void)
 
   return (fpsr >> 10) & 3;
 }
+
+#endif /* get-rounding-mode.h */

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=2d48610df228ee55736f0ad965d28fa1d82ebe2e

commit 2d48610df228ee55736f0ad965d28fa1d82ebe2e
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Mon Sep 24 17:50:17 2012 -0400

    ia64: override crtbeginT.o
    
    The ia64 gcc port has never shipped a crtbeginT.o, so keep using the
    old crtbegin.o object when static linking.
    
    Signed-off-by: Mike Frysinger <vapier@gentoo.org>

diff --git a/ports/ChangeLog.ia64 b/ports/ChangeLog.ia64
index abc2463..3566b37 100644
--- a/ports/ChangeLog.ia64
+++ b/ports/ChangeLog.ia64
@@ -1,3 +1,7 @@
+2012-09-24  Mike Frysinger  <vapier@gentoo.org>
+
+	* sysdeps/ia64/Makeconfig: New file.
+
 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
 
 	* sysdeps/ia64/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
diff --git a/ports/sysdeps/ia64/Makeconfig b/ports/sysdeps/ia64/Makeconfig
new file mode 100644
index 0000000..d1d3f6c
--- /dev/null
+++ b/ports/sysdeps/ia64/Makeconfig
@@ -0,0 +1,2 @@
+# ia64 does not provide crtbeginT.o, so use crtbegin.o.
++prectorT = $(+prector)

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

Summary of changes:
 ports/ChangeLog.ia64                               |   10 ++++++++++
 ports/sysdeps/ia64/Makeconfig                      |    2 ++
 ports/sysdeps/ia64/fpu/fegetround.c                |   10 +++-------
 .../ia64/fpu/{fegetround.c => get-rounding-mode.h} |   15 +++++++++++----
 4 files changed, 26 insertions(+), 11 deletions(-)
 create mode 100644 ports/sysdeps/ia64/Makeconfig
 copy ports/sysdeps/ia64/fpu/{fegetround.c => get-rounding-mode.h} (74%)


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]