aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-05-24 05:45:59 +0000
committerRichard Stallman <rms@gnu.org>1993-05-24 05:45:59 +0000
commit7d87fa2f026cd298a0345f00cd7430e45ba84409 (patch)
tree0e79e07a96952d73d1143ecc9d7a5464a14341ac
parentbd405e3eedc4689c2508e4343d46da0abffeca7d (diff)
downloadgcc-7d87fa2f026cd298a0345f00cd7430e45ba84409.zip
gcc-7d87fa2f026cd298a0345f00cd7430e45ba84409.tar.gz
gcc-7d87fa2f026cd298a0345f00cd7430e45ba84409.tar.bz2
(ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE): New override definitions.
From-SVN: r4548
-rw-r--r--gcc/config/i386/sco4.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/config/i386/sco4.h b/gcc/config/i386/sco4.h
index e5a6ee2..8d343d0 100644
--- a/gcc/config/i386/sco4.h
+++ b/gcc/config/i386/sco4.h
@@ -79,3 +79,20 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-DM_COFF -DM_BITFIELDS -DM_WORDSWAP \
%{scointl:-D_M_INTERNAT -DM_INTERNAT} \
%{traditional:-D_KR -D_SVID -D_NO_PROTOTYPE}}}}"
+
+/* Assembler bugs are suspected in floating constants.
+ So output them as hex. */
+
+#undef ASM_OUTPUT_DOUBLE
+#define ASM_OUTPUT_DOUBLE(FILE,VALUE) \
+do { long l[2]; \
+ REAL_VALUE_TO_TARGET_DOUBLE (VALUE, l); \
+ fprintf (FILE, "%s 0x%x,0x%x\n", ASM_LONG, l[0], l[1]); \
+ } while (0)
+
+#undef ASM_OUTPUT_FLOAT
+#define ASM_OUTPUT_FLOAT(FILE,VALUE) \
+do { long l; \
+ REAL_VALUE_TO_TARGET_SINGLE (VALUE, l); \
+ fprintf ((FILE), "%s 0x%x\n", ASM_LONG, l); \
+ } while (0)