[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r13322 - in /libdfp/trunk: ./ include/ sysdeps/powerpc/dfpu/ sysdeps/s390/dfpu/
- To: commits@xxxxxxxxxx
- Subject: [commits] r13322 - in /libdfp/trunk: ./ include/ sysdeps/powerpc/dfpu/ sysdeps/s390/dfpu/
- From: ryanarn@xxxxxxxxxx
- Date: Thu, 31 Mar 2011 02:25:24 -0000
Author: ryanarn
Date: Wed Mar 30 19:25:23 2011
New Revision: 13322
Log:
2011-03-30 Ryan S. Arnold <rsa@xxxxxxxxxx>
* sysdeps/s390/dfpu/fe_decround.c (__init_printf_dfp_getround): Added
function definition for callback and added callback pointer. The
printf_dfp () function was graciously skipping over the rounding mode
modifiers due to this missing definition.
* README.developer: Updated compatibility matrix to put x86 and x86_64
under TODO. Changed all instances of at05 to at4.0.
2011-03-30 Andreas Schwab <schwab@xxxxxxxxxx>
* fe_decround.c (__init_printf_dfp_getround): Remove unnecessary
prototype and declare constructor 'static. Remove unnecessary
hidden_def(__init_printf_dfp_getround).
* sysdeps/powerpc/dfpu/fe_decround.c (__init_printf_dfp_getround):
Remove unnecessary prototype and declare constructor 'static. Remove
unnecessary hidden_def(__init_printf_dfp_getround).
* sysdeps/s390/dfpu/fe_decround.c: Added <dfpfenv_private.h>
* printf_dfp.c: Add hidden_def (__register_printf_dfp).
* include/libdfp-symbols.h (hidden_def): Fix macro definition.
Modified:
libdfp/trunk/ChangeLog
libdfp/trunk/README.developer
libdfp/trunk/TODO
libdfp/trunk/fe_decround.c
libdfp/trunk/include/libdfp-symbols.h
libdfp/trunk/printf_dfp.c
libdfp/trunk/sysdeps/powerpc/dfpu/fe_decround.c
libdfp/trunk/sysdeps/s390/dfpu/fe_decround.c
Modified: libdfp/trunk/ChangeLog
==============================================================================
--- libdfp/trunk/ChangeLog (original)
+++ libdfp/trunk/ChangeLog Wed Mar 30 19:25:23 2011
@@ -1,3 +1,24 @@
+2011-03-30 Ryan S. Arnold <rsa@xxxxxxxxxx>
+
+ * sysdeps/s390/dfpu/fe_decround.c (__init_printf_dfp_getround): Added
+ function definition for callback and added callback pointer. The
+ printf_dfp () function was graciously skipping over the rounding mode
+ modifiers due to this missing definition.
+ * README.developer: Updated compatibility matrix to put x86 and x86_64
+ under TODO. Changed all instances of at05 to at4.0.
+
+2011-03-30 Andreas Schwab <schwab@xxxxxxxxxx>
+
+ * fe_decround.c (__init_printf_dfp_getround): Remove unnecessary
+ prototype and declare constructor 'static. Remove unnecessary
+ hidden_def(__init_printf_dfp_getround).
+ * sysdeps/powerpc/dfpu/fe_decround.c (__init_printf_dfp_getround):
+ Remove unnecessary prototype and declare constructor 'static. Remove
+ unnecessary hidden_def(__init_printf_dfp_getround).
+ * sysdeps/s390/dfpu/fe_decround.c: Added <dfpfenv_private.h>
+ * printf_dfp.c: Add hidden_def (__register_printf_dfp).
+ * include/libdfp-symbols.h (hidden_def): Fix macro definition.
+
2011-03-15 Ryan S. Arnold <rsa@xxxxxxxxxx>
* printf_dfp.c (__printf_dfp): Finished cleaning up 'decimal'.
Modified: libdfp/trunk/README.developer
==============================================================================
--- libdfp/trunk/README.developer (original)
+++ libdfp/trunk/README.developer Wed Mar 30 19:25:23 2011
@@ -119,6 +119,9 @@
S/390 z9-109 SW libdecnumber DPD
S/390 z9-ec HW libdecnumber DPD
S/390 z10 HW libdecnumber DPD
+
+TODO:
+-------------------------------------------------
x86 SW libdecnumber DPD | BID
x86_64 SW libbid BID
@@ -401,7 +404,7 @@
64-bit PowerPC (soft-dfp) using the libdecnumber backend and dpd encoding:
-CC=/opt/at05/bin/gcc CFLAGS="-m64 -O2 -g" \
+CC=/opt/at4.0/bin/gcc CFLAGS="-m64 -O2 -g" \
/home/ryanarn/eglibc/eglibc/libdfp/trunk/configure \
--with-backend=libdecnumber --enable-decimal-float=dpd \
--libdir=/usr/lib64/ \
@@ -413,7 +416,7 @@
64-bit PowerPC POWER6 (hard-dfp) using libdecnumber backend and dpd encoding: We only
need the --with-cpu=power6 flag for power6 support and hardware-dfp:
-CC=/opt/at05/bin/gcc CFLAGS="-m64 -O2 -g" \
+CC=/opt/at4.0/bin/gcc CFLAGS="-m64 -O2 -g" \
/home/ryanarn/eglibc/eglibc/libdfp/trunk/configure \
--with-backend=libdecnumber --enable-decimal-float=dpd \
--libdir=/usr/lib64/ \
@@ -425,7 +428,7 @@
64-bit PowerPC POWER7 (hard-dfp) using libdecnumber backend and dpd encoding: We only
need the --with-cpu=power7 flag for power7 support and hardware-dfp:
-CC=/opt/at05/bin/gcc CFLAGS="-m64 -O2 -g" \
+CC=/opt/at4.0/bin/gcc CFLAGS="-m64 -O2 -g" \
/home/ryanarn/eglibc/eglibc/libdfp/trunk/configure \
--with-backend=libdecnumber --enable-decimal-float=dpd \
--libdir=/usr/lib64/ \
@@ -436,7 +439,7 @@
32-bit PowerPC (soft-dfp) using the libdecnumber backend and dpd encoding:
-CC=/opt/at05/bin/gcc CFLAGS="-m32 -O2 -g" \
+CC=/opt/at4.0/bin/gcc CFLAGS="-m32 -O2 -g" \
/home/ryanarn/eglibc/eglibc/libdfp/trunk/configure \
--with-backend=libdecnumber --enable-decimal-float=dpd \
--with-glibc-headers=/home/ryanarn/ppc64-tc-utils/trunk/libdfp/include-2.10/ \
@@ -446,7 +449,7 @@
Or 32-bit POWER6 (hard-dfp):
-CC=/opt/at05/bin/gcc CFLAGS="-m32 -O2 -g" \
+CC=/opt/at4.0/bin/gcc CFLAGS="-m32 -O2 -g" \
/home/ryanarn/eglibc/eglibc/libdfp/trunk/configure \
--with-backend=libdecnumber --enable-decimal-float=dpd \
--with-glibc-headers=/home/ryanarn/ppc64-tc-utils/trunk/libdfp/include-2.10/ \
@@ -456,7 +459,7 @@
Or 32-bit POWER7 (hard-dfp):
-CC=/opt/at05/bin/gcc CFLAGS="-m32 -O2 -g" \
+CC=/opt/at4.0/bin/gcc CFLAGS="-m32 -O2 -g" \
/home/ryanarn/eglibc/eglibc/libdfp/trunk/configure \
--with-backend=libdecnumber --enable-decimal-float=dpd \
--with-glibc-headers=/home/ryanarn/ppc64-tc-utils/trunk/libdfp/include-2.10/ \
Modified: libdfp/trunk/TODO
==============================================================================
--- libdfp/trunk/TODO (original)
+++ libdfp/trunk/TODO Wed Mar 30 19:25:23 2011
@@ -1,3 +1,5 @@
+Add printf_dfp test which change the rounding mode.
+
[DONE] Configure runtime test for decimal floating point support in compiler.
[DONE] Configure test for glibc 2.10 headers.
@@ -10,10 +12,6 @@
Add --export-test feature to export the test-suite into stand-alone static
test cases.
-
-libdecnumber.so phantom library for compat issues.
-
-libdfp version issues with older apps.
[DONE] If system glibc is 2.10 then make check shouldn't need all the GLIBC build
scaffolding for executing and debugging tests.
Modified: libdfp/trunk/fe_decround.c
==============================================================================
--- libdfp/trunk/fe_decround.c (original)
+++ libdfp/trunk/fe_decround.c Wed Mar 30 19:25:23 2011
@@ -1,7 +1,7 @@
/* Decimal Float fe_dec_getround and fe_dec_setround definitions.
Copyright (C) 2006 IBM Corporation.
- Copyright (C) 2007, 2009 Free Software Foundation.
+ Copyright (C) 2007, 2009, 2011 Free Software Foundation.
This file is part of the Decimal Floating Point C Library.
@@ -81,10 +81,7 @@
extern int (*__printf_dfp_getround_callback)(void);
-extern void __init_printf_dfp_getround (void);
-
-void __attribute__ ((constructor))__init_printf_dfp_getround (void)
+static void __attribute__ ((constructor))__init_printf_dfp_getround (void)
{
__printf_dfp_getround_callback = &__fe_dec_getround;
}
-hidden_def (__init_printf_dfp_getround);
Modified: libdfp/trunk/include/libdfp-symbols.h
==============================================================================
--- libdfp/trunk/include/libdfp-symbols.h (original)
+++ libdfp/trunk/include/libdfp-symbols.h Wed Mar 30 19:25:23 2011
@@ -83,7 +83,9 @@
__attribute__((alias (__hidden_asmname (#local))))
# define hidden_ver(local, name) __hidden_ver1(local, __GI_##name, name);
# define hidden_data_ver(local, name) hidden_ver(local, name)
-# define hidden_def(name) __hidden_ver1(__GI_##name, name, name);
+# define hidden_def(name) _hidden_def(name)
+# define _hidden_def(name) __hidden_ver1(__GI_##name, name, name);
+
# define hidden_data_def(name) hidden_def(name)
# define hidden_weak(name) \
__hidden_ver1(__GI_##name, name, name) __attribute__((weak));
Modified: libdfp/trunk/printf_dfp.c
==============================================================================
--- libdfp/trunk/printf_dfp.c (original)
+++ libdfp/trunk/printf_dfp.c Wed Mar 30 19:25:23 2011
@@ -907,3 +907,4 @@
return 0;
}
strong_alias (__register_printf_dfp, register_printf_dfp)
+hidden_def (__register_printf_dfp)
Modified: libdfp/trunk/sysdeps/powerpc/dfpu/fe_decround.c
==============================================================================
--- libdfp/trunk/sysdeps/powerpc/dfpu/fe_decround.c (original)
+++ libdfp/trunk/sysdeps/powerpc/dfpu/fe_decround.c Wed Mar 30 19:25:23 2011
@@ -1,7 +1,7 @@
/* Decimal Float fe_dec_getround and fe_dec_setround definitions.
Copyright (C) 2006 IBM Corporation.
- Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009, 2010, 2011 Free Software Foundation, Inc.
This file is part of the Decimal Floating Point C Library.
@@ -133,11 +133,7 @@
extern int (*__printf_dfp_getround_callback)(void);
-extern void __init_printf_dfp_getround (void);
-
-void __attribute__ ((constructor))
-__init_printf_dfp_getround (void)
+static void __attribute__ ((constructor))__init_printf_dfp_getround (void)
{
__printf_dfp_getround_callback = &__fe_dec_getround;
}
-hidden_def (__init_printf_dfp_getround);
Modified: libdfp/trunk/sysdeps/s390/dfpu/fe_decround.c
==============================================================================
--- libdfp/trunk/sysdeps/s390/dfpu/fe_decround.c (original)
+++ libdfp/trunk/sysdeps/s390/dfpu/fe_decround.c Wed Mar 30 19:25:23 2011
@@ -1,6 +1,6 @@
/* Return current rounding direction.
- Copyright (C) 2000, 2008, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2008, 2009, 2011 Free Software Foundation, Inc.
This file is part of the Decimal Floating Point C Library.
@@ -24,6 +24,7 @@
#include <fenv_libdfp.h>
#include <fpu_control.h>
+#include <dfpfenv_private.h>
/* Based on the binary floating point variants contributed
by Denis Joseph Barrow (djbarrow@xxxxxxxxxx). */
@@ -59,3 +60,10 @@
}
strong_alias(__fe_dec_setround, fe_dec_setround)
hidden_def(__fe_dec_setround)
+
+extern int (*__printf_dfp_getround_callback)(void);
+
+static void __attribute__ ((constructor))__init_printf_dfp_getround (void)
+{
+ __printf_dfp_getround_callback = &__fe_dec_getround;
+}