diff options
author | Richard Henderson <rth@redhat.com> | 2002-10-16 00:40:39 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2002-10-16 00:40:39 +0000 |
commit | 416a7a4def6ee494e67712f94e1e51e73126376e (patch) | |
tree | 5b673d80faa93e51f114a60dc517ca1f9603bf06 /gcc/config/ns32k/ns32k.c | |
parent | c62b4aacd12e6a22a8bb36dc03b94bd5994adb30 (diff) |
gcc/
* real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS
as arguments. Bound DIGITS by the available buffer size.
(real_to_hexadecimal): Likewise.
* real.h (real_to_decimal, real_to_hexadecimal): Update prototypes.
(REAL_VALUE_TO_DECIMAL): Remove.
* c-common.c, c-pretty-print.c, print-rtl.c, print-tree.c,
sched-vis.c, config/arc/arc.c, config/c4x/c4x.c, config/fr30/fr30.c,
config/i370/i370.h, config/i386/i386.c, config/i960/i960.c,
config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
config/m68k/hp320.h, config/m68k/m68k.h, config/m68k/sun2o4.h,
config/m68k/sun3.h, config/mips/mips.c, config/ns32k/ns32k.c,
config/pdp11/pdp11.h, config/vax/vax.h: Update all callers to
use real_to_decimal directly, and with the proper arguments.
* doc/tm.texi (REAL_VALUE_TO_DECIMAL): Remove.
gcc/cp/
* error.c (dump_expr): Use real_to_decimal directly, and with
the new arguments.
gcc/f/
* target.h (ffetarget_print_real1, ffetarget_print_real2): Use
real_to_decimal directly, and with the new arguments.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@58187 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/ns32k/ns32k.c')
-rw-r--r-- | gcc/config/ns32k/ns32k.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/config/ns32k/ns32k.c b/gcc/config/ns32k/ns32k.c index b94e7042c53..b94765bfb3a 100644 --- a/gcc/config/ns32k/ns32k.c +++ b/gcc/config/ns32k/ns32k.c @@ -1130,11 +1130,13 @@ print_operand (file, x, code) { #ifdef SEQUENT_ASM /* Sequent likes its floating point constants as integers */ + long l[2]; + REAL_VALUE_TO_TARGET_DOUBLE (r, l); fprintf (file, "0Dx%08x%08x", - CONST_DOUBLE_HIGH (x), CONST_DOUBLE_LOW (x)); + l[!WORDS_BIG_ENDIAN], l[WORDS_BIG_ENDIAN]); #else char s[30]; - REAL_VALUE_TO_DECIMAL (r, s, -1); + real_to_decimal (s, &r, sizeof (s), 0, 1); #ifdef ENCORE_ASM fprintf (file, "0f%s", s); #else @@ -1150,7 +1152,7 @@ print_operand (file, x, code) fprintf (file, "0Fx%08lx", l); #else char s[30]; - REAL_VALUE_TO_DECIMAL (r, s, -1); + real_to_decimal (s, &r, sizeof (s), 0, 1); fprintf (file, "0f%s", s); #endif } |