diff mbox

Allow decimal floats for mingw-w64

Message ID 4C73DDEA.2050400@users.sourceforge.net
State New
Headers show

Commit Message

JonY Aug. 24, 2010, 2:57 p.m. UTC
On 8/24/2010 23:05, Joseph S. Myers wrote:
> On Tue, 24 Aug 2010, JonY wrote:
>
>> Hi,
>>
>> Attached patch enables i?86-w64-mingw32 and x86_64-w64-mingw32 decimal float
>> support with bid.
>
> My previous comments about the several places to keep in sync
> <http://gcc.gnu.org/ml/gcc-patches/2010-02/msg00933.html>  apply equally to
> this patch (see also followups to the previous comments).
>

Thanks for the heads up. New patch with quick fixes attached.

Do you want the GCC_AC_ENABLE_DECIMAL_FLOAT version instead?

Comments

Ralf Wildenhues Aug. 24, 2010, 5:25 p.m. UTC | #1
* JonY wrote on Tue, Aug 24, 2010 at 04:57:46PM CEST:
> Thanks for the heads up. New patch with quick fixes attached.

Not sure if you're posting a full or a partial patch, but while it
contained libgcc/configure, it didn't contain changes to
libgcc/configure.ac which is the source to the former file.

Cheers,
Ralf

> Index: libgcc/configure
> ===================================================================
> --- libgcc/configure	(revision 163517)
> +++ libgcc/configure	(working copy)
> @@ -3646,7 +3646,7 @@
>  else
>  
>    case $host in
> -    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
> +    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | i?86*-w64-mingw* | x86_64*-w64-mingw*)
>        enable_decimal_float=yes
>        ;;
>      *)
> @@ -3660,7 +3660,7 @@
>  # x86's use BID format instead of DPD
>  if test x$enable_decimal_float = xyes; then
>    case $host in
> -    i?86*-*-linux* | x86_64*-*-linux*)
> +    i?86*-*-linux* | x86_64*-*-linux* | i?86*-w64-mingw* | x86_64*-w64-mingw*)
diff mbox

Patch

Index: gcc/configure.ac
===================================================================
--- gcc/configure.ac	(revision 163517)
+++ gcc/configure.ac	(working copy)
@@ -620,7 +620,7 @@ 
 ],
 [
   case $target in
-    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
+    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | i?86*-w64-mingw* | x86_64*-w64-mingw*)
       enable_decimal_float=yes
       ;;
     *)
@@ -638,7 +638,7 @@ 
 case x$enable_decimal_float in
   xyes)
     case $target in
-      i?86*-*-linux* | x86_64*-*-linux*)
+      i?86*-*-linux* | x86_64*-*-linux* | i?86*-w64-mingw* | x86_64*-w64-mingw*)
 	enable_decimal_float=bid
 	;;
       *)
Index: gcc/configure
===================================================================
--- gcc/configure	(revision 163517)
+++ gcc/configure	(working copy)
@@ -6661,7 +6661,7 @@ 
 else
 
   case $target in
-    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
+    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | i?86*-w64-mingw* | x86_64*-w64-mingw*)
       enable_decimal_float=yes
       ;;
     *)
@@ -6685,7 +6685,7 @@ 
 case x$enable_decimal_float in
   xyes)
     case $target in
-      i?86*-*-linux* | x86_64*-*-linux*)
+      i?86*-*-linux* | x86_64*-*-linux* | i?86*-w64-mingw* | x86_64*-w64-mingw*)
 	enable_decimal_float=bid
 	;;
       *)
Index: libdecnumber/configure.ac
===================================================================
--- libdecnumber/configure.ac	(revision 163517)
+++ libdecnumber/configure.ac	(working copy)
@@ -89,7 +89,7 @@ 
 ],
 [
   case $target in
-    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
+    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | i?86*-w64-mingw* | x86_64*-w64-mingw*)
       enable_decimal_float=yes
       ;;
     *)
@@ -103,7 +103,7 @@ 
 # For the sake of simplicity, just use the default format in this directory
 if test x$enable_decimal_float = xyes -o x$enable_decimal_float = xno; then
   case $target in
-    i?86*-*-linux* | x86_64*-*-linux*)
+    i?86*-*-linux* | x86_64*-*-linux* | i?86*-w64-mingw* | x86_64*-w64-mingw*)
       enable_decimal_float=bid
       ;;
     *)
Index: libdecnumber/configure
===================================================================
--- libdecnumber/configure	(revision 163517)
+++ libdecnumber/configure	(working copy)
@@ -4600,7 +4600,7 @@ 
 else
 
   case $target in
-    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
+    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | i?86*-w64-mingw* | x86_64*-w64-mingw*)
       enable_decimal_float=yes
       ;;
     *)
@@ -4616,7 +4616,7 @@ 
 # For the sake of simplicity, just use the default format in this directory
 if test x$enable_decimal_float = xyes -o x$enable_decimal_float = xno; then
   case $target in
-    i?86*-*-linux* | x86_64*-*-linux*)
+    i?86*-*-linux* | x86_64*-*-linux* | i?86*-w64-mingw* | x86_64*-w64-mingw*)
       enable_decimal_float=bid
       ;;
     *)
Index: libgcc/configure
===================================================================
--- libgcc/configure	(revision 163517)
+++ libgcc/configure	(working copy)
@@ -3646,7 +3646,7 @@ 
 else
 
   case $host in
-    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
+    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | i?86*-w64-mingw* | x86_64*-w64-mingw*)
       enable_decimal_float=yes
       ;;
     *)
@@ -3660,7 +3660,7 @@ 
 # x86's use BID format instead of DPD
 if test x$enable_decimal_float = xyes; then
   case $host in
-    i?86*-*-linux* | x86_64*-*-linux*)
+    i?86*-*-linux* | x86_64*-*-linux* | i?86*-w64-mingw* | x86_64*-w64-mingw*)
       enable_decimal_float=bid
       ;;
     *)