From: Danny Smith <dannysmith@clear.net.nz>
To: GCC-patches <gcc-patches@gcc.gnu.org>
Cc: bje@au.ibm.com
Subject: RFA: Enable DFP/BID on i?86-pc-mingw32 target
Date: Sat, 21 Jul 2007 10:15:00 -0000 [thread overview]
Message-ID: <000001c7cb79$8e6b0c50$184861cb@THOMAS> (raw)
Hello,
With following patch libbid builds and passes all supported tests in
gcc.dg/dfp
make -k check-gcc RUNSTESTFLAGS="dfp.exp"
=== gcc Summary ===
# of expected passes 591
# of unsupported tests 1
/develop/svn/trunk/build/gcc/xgcc version 4.3.0 200707158
(experimental)
I have also tried on cygwin target, but the build fails because of lack
of fenv.h,
included from libdecnumber/dec/Except.[ch].
Is this OK for mainline?
2007-07-19 Danny Smith <dannysmith@users.sourceforge.net>
gcc
* configure.ac (i?86*-*-mingw*): Default enable_decimal_float to
bid.
* configure: Regenerate
libgcc
* config/t-dfprules: New file, copied from gcc/config.
* config.host (i?86*-*-mingw*): Adds t-dfprules to tmake_file.
Index: gcc/configure.ac
===================================================================
--- gcc/configure.ac (revision 126718)
+++ gcc/configure.ac (working copy)
@@ -592,6 +592,9 @@
powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
enable_decimal_float=yes
;;
+ i?86*-*-mingw*)
+ enable_decimal_float=yes
+ ;;
*)
AC_MSG_WARN(decimal float is not supported for this target,
ignored)
enable_decimal_float=no
@@ -610,6 +613,9 @@
i?86*-*-linux* | x86_64*-*-linux*)
enable_decimal_float=bid
;;
+ i?86*-*-mingw*)
+ enable_decimal_float=bid
+ ;;
*)
enable_decimal_float=dpd
;;
Index: libgcc/config.host
===================================================================
--- libgcc/config.host (revision 126718)
+++ libgcc/config.host (working copy)
@@ -369,10 +369,14 @@
;;
i[34567]86-*-pe)
;;
-i[34567]86-*-cygwin* | i[34567]86-*-mingw*)
+i[34567]86-*-cygwin*)
extra_parts="crtbegin.o crtend.o crtfastmath.o"
tmake_file="i386/t-cygming i386/t-crtfm"
;;
+i[34567]86-*-mingw*)
+ extra_parts="crtbegin.o crtend.o crtfastmath.o"
+ tmake_file="i386/t-cygming i386/t-crtfm t-dfprules"
+ ;;
x86_64-*-mingw*)
;;
i[34567]86-*-uwin*)
Index: libgcc/config/t-dfprules
===================================================================
--- libgcc/config/t-dfprules (revision 0)
+++ libgcc/config/t-dfprules (revision 0)
@@ -0,0 +1,10 @@
+# Use DFP_ENABLE to build decimal floating point support routines for
+# all decimal floating point types (32-bit, 64-bit and 128-bit). We
+# use `true' for clarity, but any value will do.
+#
+DFP_ENABLE = true
+
+# DFP_CFLAGS can be used to pass target-specific CFLAGS when compiling
+# dfp-bit.c. This is useful for overriding the definition of macros.
+#
+# DFP_CFLAGS = -DFOO=bar
next reply other threads:[~2007-07-21 9:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-21 10:15 Danny Smith [this message]
2007-07-21 10:57 ` Paolo Bonzini
2007-07-21 19:56 ` Ben Elliston
2007-07-22 10:23 ` Danny Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000001c7cb79$8e6b0c50$184861cb@THOMAS' \
--to=dannysmith@clear.net.nz \
--cc=bje@au.ibm.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).