This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 $< >> $@


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]