aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1992-04-09 18:58:47 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1992-04-09 18:58:47 +0000
commit1f7da38ef9526fc6ce11d02c97d9c5db4448e46a (patch)
tree7b064615c01ea1cbcd7070b685f03f51c2d9abb0 /gcc
parentf55f2506767dbfad2b5f27b92e63c1a5349b9127 (diff)
downloadgcc-1f7da38ef9526fc6ce11d02c97d9c5db4448e46a.zip
gcc-1f7da38ef9526fc6ce11d02c97d9c5db4448e46a.tar.gz
gcc-1f7da38ef9526fc6ce11d02c97d9c5db4448e46a.tar.bz2
*** empty log message ***
From-SVN: r713
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i386/osfrose.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/gcc/config/i386/osfrose.h b/gcc/config/i386/osfrose.h
index 153bb45..20439b5 100644
--- a/gcc/config/i386/osfrose.h
+++ b/gcc/config/i386/osfrose.h
@@ -127,6 +127,36 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
by hand, rather than passing the argeument '-lgcc' to tell the linker
to do the search */
#define LINK_LIBGCC_SPECIAL
+
+/* This is how to output an assembler line defining a `double' constant.
+ Use "word" pseudos to avoid printing NaNs, infinity, etc. */
+
+/* This is how to output an assembler line defining a `double' constant. */
+
+#ifdef ASM_OUTPUT_DOUBLE
+#undef ASM_OUTPUT_DOUBLE
+#endif
+#define ASM_OUTPUT_DOUBLE(STREAM,VALUE) \
+{ \
+ union { double d; long l[2]; } u2; \
+ u2.d = VALUE; \
+ fprintf (STREAM, "\t.long\t0x%08lx\t\t# %.20g\n\t.long\t0x%08lx\n", \
+ u2.l[0], u2.d, u2.l[1]); \
+}
+
+/* This is how to output an assembler line defining a `float' constant. */
+
+#ifdef ASM_OUTPUT_FLOAT
+#undef ASM_OUTPUT_FLOAT
+#endif
+#define ASM_OUTPUT_FLOAT(STREAM,VALUE) \
+{ \
+ union { float f; long l; } u2; \
+ u2.f = VALUE; \
+ fprintf (STREAM, "\t.long\t0x%08lx\t\t# %.12g\n", u2.l, u2.f); \
+}
+
+
/* Defines to be able to build libgcc.a with GCC. */