diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-02 02:38:02 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-02 02:38:02 +0000 |
commit | 76834cdac2a8c4593597c6c5f200b2f3c8d5ec74 (patch) | |
tree | 0d5a4dfe098881e5af5eb6426ef98c6dd45f8b3c /gcc/print-rtl.c | |
parent | bb7cc0fbeeccc931543f43a154136b2c7789fa69 (diff) | |
download | gcc-76834cdac2a8c4593597c6c5f200b2f3c8d5ec74.tar.gz |
* real.c (real_to_decimal): Crop trailing zeros for DIGITS < 0.
(real_to_hexadecimal): Likewise.
* print-rtl.c (print_rtx): If we are linked with real.c, don't
dump the XWINT fields of a floating point CONST_DOUBLE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57719 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 1364e9498dd..ebebf858672 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -195,6 +195,11 @@ print_rtx (in_rtx) } } +#ifndef GENERATOR_FILE + if (GET_CODE (in_rtx) == CONST_DOUBLE && FLOAT_MODE_P (GET_MODE (in_rtx))) + i = 5; +#endif + /* Get the format string and skip the first elements if we have handled them already. */ format_ptr = GET_RTX_FORMAT (GET_CODE (in_rtx)) + i; @@ -517,11 +522,12 @@ print_rtx (in_rtx) case CONST_DOUBLE: if (FLOAT_MODE_P (GET_MODE (in_rtx))) { - REAL_VALUE_TYPE val; char s[30]; - REAL_VALUE_FROM_CONST_DOUBLE (val, in_rtx); - REAL_VALUE_TO_DECIMAL (val, s, -1); + real_to_decimal (s, CONST_DOUBLE_REAL_VALUE (in_rtx), -1); + fprintf (outfile, " %s", s); + + real_to_hexadecimal (s, CONST_DOUBLE_REAL_VALUE (in_rtx), -1); fprintf (outfile, " [%s]", s); } break; |