From da6eec72f5a23bbee21efae3efd976283bf1c23c Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 15 Oct 2002 17:40:39 -0700 Subject: real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS as arguments. 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. From-SVN: r58187 --- gcc/doc/tm.texi | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'gcc/doc') diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index bf94d58..c2dfd39 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -6326,17 +6326,6 @@ host machine. The array element values are designed so that you can print them out using @code{fprintf} in the order they should appear in the target machine's memory. - -@item REAL_VALUE_TO_DECIMAL (@var{x}, @var{string}, @var{digits}) -@findex REAL_VALUE_TO_DECIMAL -This macro converts @var{x}, of type @code{REAL_VALUE_TYPE}, to a -decimal number and stores it as a string into @var{string}. -You must pass, as @var{string}, the address of a long enough block -of space to hold the result. - -The argument @var{digits} is the number of decimal digits to print, -or @minus{}1 to indicate ``enough'', i.e. @code{DECIMAL_DIG} for -for the target. @end table @node Uninitialized Data -- cgit v1.1