Patchwork Decimal Floating-Point (libbid) for GNU/Hurd

login
register
mail settings
Submitter Thomas Schwinge
Date June 16, 2012, 2:32 p.m.
Message ID <1339857164-4566-1-git-send-email-thomas@codesourcery.com>
Download mbox | patch
Permalink /patch/165293/
State Accepted, archived
Headers show

Comments

Thomas Schwinge - June 16, 2012, 2:32 p.m.
Hi!

Intel folks, the bid_functions.h change is for you, that one plus the
other changes are for GCC.

libgcc/config/libbid/
	* bid_functions.h: Check for __GLIBC__ additionally to LINUX when
	defining format specifiers.

config/
	* dfp.m4 (enable_decimal_float): Enable for i?86*-*-gnu*.

gcc/
	* configure: Regenerate.

libdecnumber/
	* configure: Regenerate.

libgcc/
	* configure: Regenerate.

OK to check in?


Grüße,
 Thomas

---
 config/dfp.m4                        |    1 +
 gcc/configure                        |    5 +++--
 libdecnumber/configure               |    1 +
 libgcc/config/libbid/bid_functions.h |    4 ++--
 libgcc/configure                     |    1 +
 5 files changed, 8 insertions(+), 4 deletions(-)
H.J. Lu - June 16, 2012, 2:35 p.m.
On Sat, Jun 16, 2012 at 7:32 AM, Thomas Schwinge
<thomas@codesourcery.com> wrote:
> Hi!
>
> Intel folks, the bid_functions.h change is for you, that one plus the
> other changes are for GCC.
>
> libgcc/config/libbid/
>        * bid_functions.h: Check for __GLIBC__ additionally to LINUX when
>        defining format specifiers.
>

Looks OK to me.

Thanks.
decimalfp - July 23, 2012, 4:45 p.m.
Hello Thomas,
Just a follow-up - have those changes been made?
Thank you,
Marius Cornea


-----Original Message-----
From: H.J. Lu [mailto:hjl.tools@gmail.com] 
Sent: Saturday, June 16, 2012 7:35 AM
To: Thomas Schwinge
Cc: decimalfp; gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] Decimal Floating-Point (libbid) for GNU/Hurd

On Sat, Jun 16, 2012 at 7:32 AM, Thomas Schwinge <thomas@codesourcery.com> wrote:
> Hi!
>
> Intel folks, the bid_functions.h change is for you, that one plus the 
> other changes are for GCC.
>
> libgcc/config/libbid/
>        * bid_functions.h: Check for __GLIBC__ additionally to LINUX 
> when
>        defining format specifiers.
>

Looks OK to me.

Thanks.

--
H.J.
Thomas Schwinge - Nov. 4, 2012, 11:10 p.m.
Hi!

On Mon, 23 Jul 2012 16:45:37 +0000, decimalfp <decimalfp@intel.com> wrote:
> Just a follow-up - have those changes been made?

I now pushed these in r193143.

libgcc/config/libbid/
	* bid_functions.h: Check for __GLIBC__ additionally to LINUX when
	defining format specifiers.

config/
	* dfp.m4 (enable_decimal_float): Enable for i?86*-*-gnu*.

gcc/
	* configure: Regenerate.

libdecnumber/
	* configure: Regenerate.

libgcc/
	* configure: Regenerate.


Grüße,
 Thomas

Patch

diff --git a/config/dfp.m4 b/config/dfp.m4
index cc778b1..e971db4 100644
--- a/config/dfp.m4
+++ b/config/dfp.m4
@@ -21,6 +21,7 @@  Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;;
 [
   case $1 in
     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
+    i?86*-*-gnu* | \
     i?86*-*-mingw* | x86_64*-*-mingw* | \
     i?86*-*-cygwin*)
       enable_decimal_float=yes
diff --git a/gcc/configure b/gcc/configure
index 1fdf0af..3fea751 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -7053,6 +7053,7 @@  else
 
   case $target in
     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
+    i?86*-*-gnu* | \
     i?86*-*-mingw* | x86_64*-*-mingw* | \
     i?86*-*-cygwin*)
       enable_decimal_float=yes
@@ -17971,7 +17972,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 17974 "configure"
+#line 17975 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -18077,7 +18078,7 @@  else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 18080 "configure"
+#line 18081 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
diff --git a/libdecnumber/configure b/libdecnumber/configure
index 2b58684..0466371 100755
--- a/libdecnumber/configure
+++ b/libdecnumber/configure
@@ -4611,6 +4611,7 @@  else
 
   case $target in
     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
+    i?86*-*-gnu* | \
     i?86*-*-mingw* | x86_64*-*-mingw* | \
     i?86*-*-cygwin*)
       enable_decimal_float=yes
diff --git a/libgcc/config/libbid/bid_functions.h b/libgcc/config/libbid/bid_functions.h
index 579370a..abb27b9 100644
--- a/libgcc/config/libbid/bid_functions.h
+++ b/libgcc/config/libbid/bid_functions.h
@@ -1,4 +1,4 @@ 
-/* Copyright (C) 2007, 2009  Free Software Foundation, Inc.
+/* Copyright (C) 2007, 2009, 2011 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -124,7 +124,7 @@  ALIGN (16)
 #define DENORMAL_MODE           0x00000100
 #define INVALID_MODE            0x00000080
 
-#if defined LINUX || defined SUNOS
+#if defined LINUX || defined __GLIBC__ || defined SUNOS
 #define LX16  "%016llx"
 #define LX    "%llx"
 #define LD4   "%4llu"
diff --git a/libgcc/configure b/libgcc/configure
index a226f81..e645378 100644
--- a/libgcc/configure
+++ b/libgcc/configure
@@ -4075,6 +4075,7 @@  else
 
   case $host in
     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
+    i?86*-*-gnu* | \
     i?86*-*-mingw* | x86_64*-*-mingw* | \
     i?86*-*-cygwin*)
       enable_decimal_float=yes