aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-03-31 20:43:57 +0000
committerRichard Stallman <rms@gnu.org>1993-03-31 20:43:57 +0000
commit2700ac936a66273b66757ce51c42df0fe6180870 (patch)
treea1bea20c10d5242a03148e739e65fa0ee613e913
parent990a1e466c9390b4d94fbfb129f7fd121e006df9 (diff)
downloadgcc-2700ac936a66273b66757ce51c42df0fe6180870.zip
gcc-2700ac936a66273b66757ce51c42df0fe6180870.tar.gz
gcc-2700ac936a66273b66757ce51c42df0fe6180870.tar.bz2
(ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE):
Use new REAL_VALUE... macros. (REAL_ARITHMETIC): Defined. From-SVN: r3960
-rw-r--r--gcc/config/alpha/alpha.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h
index 9d62bb3..63bf66b 100644
--- a/gcc/config/alpha/alpha.h
+++ b/gcc/config/alpha/alpha.h
@@ -1,5 +1,5 @@
/* Definitions of target machine for GNU compiler, for DEC Alpha.
- Copyright (C) 1992 Free Software Foundation, Inc.
+ Copyright (C) 1992, 1993 Free Software Foundation, Inc.
Contributed by Richard Kenner (kenner@nyu.edu)
This file is part of GNU CC.
@@ -115,6 +115,9 @@ extern int target_flags;
/* target machine storage layout */
+/* Define to enable software floating point emulation. */
+#define REAL_ARITHMETIC
+
/* Define the size of `int'. The default is the same as the word size. */
#define INT_TYPE_SIZE 32
@@ -1455,14 +1458,20 @@ literal_section () \
/* This is how to output an assembler line defining a `double' constant. */
-#define ASM_OUTPUT_DOUBLE(FILE,VALUE) \
- fprintf (FILE, "\t.t_floating %.20e\n", (VALUE))
+#define ASM_OUTPUT_DOUBLE(FILE,VALUE) \
+do { char dstr[30]; \
+ REAL_VALUE_TO_DECIMAL (VALUE, "%.20e", dstr); \
+ fprintf (FILE, "\t.t_floating %s\n", dstr); \
+ } while (0)
/* This is how to output an assembler line defining a `float' constant. */
-#define ASM_OUTPUT_FLOAT(FILE,VALUE) \
- fprintf (FILE, "\t.s_floating %.20e\n", (VALUE))
-
+#define ASM_OUTPUT_FLOAT(FILE,VALUE) \
+do { char dstr[30]; \
+ REAL_VALUE_TO_DECIMAL (VALUE, "%.20e", dstr); \
+ fprintf (FILE, "\t.s_floating %s\n", dstr); \
+ } while (0)
+
/* This is how to output an assembler line defining an `int' constant. */
#define ASM_OUTPUT_INT(FILE,VALUE) \