This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Add gcc/config/t-dfprules file
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 6 Feb 2006 15:35:27 +1100
- Subject: PATCH: Add gcc/config/t-dfprules file
This patch adds a new t-dfprules file to gcc/config, which provides a
sensible set of default make targets to build the decimal floating
point runtime files. Ports that wish to use it can just include it
via config.gcc, provided they need nothing special.
Okay for the trunk?
Ben
2006-02-06 Ben Elliston <bje@au.ibm.com>
* config/t-dfprules: New file.
Index: gcc/config/t-dfprules
===================================================================
--- gcc/config/t-dfprules (revision 0)
+++ gcc/config/t-dfprules (revision 0)
@@ -0,0 +1,17 @@
+# Build decimal floating point support routines.
+
+D32PBIT = dfp32-bit.c
+D64PBIT = dfp64-bit.c
+D128PBIT = dfp128-bit.c
+
+dfp32-bit.c: $(srcdir)/config/dfp-bit.c
+ echo '#define WIDTH 32' > $@
+ cat $< >> $@
+
+dfp64-bit.c: $(srcdir)/config/dfp-bit.c
+ echo '#define WIDTH 64' > $@
+ cat $< >> $@
+
+dfp128-bit.c: $(srcdir)/config/dfp-bit.c
+ echo '#define WIDTH 128' > $@
+ cat $< >> $@