aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-pretty-print.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2015-10-05 11:35:07 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2015-10-05 11:35:07 +0000
commit5c88ea9456b266f202ee0a690b41f9a4e9558457 (patch)
tree931af8886409aa4886077746e7766455e9957e03 /gcc/tree-pretty-print.c
parent8cb41028fe43dfc2a9c8c2a49deefb769fc1f5e4 (diff)
downloadgcc-5c88ea9456b266f202ee0a690b41f9a4e9558457.zip
gcc-5c88ea9456b266f202ee0a690b41f9a4e9558457.tar.gz
gcc-5c88ea9456b266f202ee0a690b41f9a4e9558457.tar.bz2
Remove remaining uses of REAL_ARITHMETIC
This patch replaces all remaining uses of the old target macro REAL_ARITHMETIC with calls to the (now generic) real_arithmetic function. Bootstrapped & regression-tested on x86_64-linux-gnu. Also tested by building one target per CPU directory and checking that there were no new warnings and no changes in testsuite output at -O2. gcc/ada/ * gcc-interface/trans.c (convert_with_check): Use real_arithmetic instead of REAL_ARITHMETIC. gcc/ * doc/tm.texi.in (REAL_ARITHMETIC): Delete. * doc/tm.texi: Regenerate. * real.h (REAL_ARITHMETIC): Delete. * config/i386/i386.c (ix86_expand_lround, ix86_expand_round) (ix86_expand_round_sse4): Use real_arithmetic instead of REAL_ARITHMETIC. * config/i386/sse.md (round<mode>2): Likewise. * rtl.h (rtx_to_tree_code): Likewise (in comment). * explow.c (rtx_to_tree_code): Likewise (in comment). * match.pd: Likewise. * simplify-rtx.c (simplify_binary_operation_1): Likewise. * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise. (expand_pow_as_sqrts): Likewise. * tree-pretty-print.c (dump_generic_node): Remove code that was conditional on REAL_ARITHMETIC being undefined. From-SVN: r228476
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r--gcc/tree-pretty-print.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index 7cd1fe7..ce3f6a8 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -1428,7 +1428,6 @@ dump_generic_node (pretty_printer *pp, tree node, int spc, int flags,
if (TREE_OVERFLOW (node))
pp_string (pp, " overflow");
-#if !defined(REAL_IS_NOT_DOUBLE) || defined(REAL_ARITHMETIC)
d = TREE_REAL_CST (node);
if (REAL_VALUE_ISINF (d))
pp_string (pp, REAL_VALUE_NEGATIVE (d) ? " -Inf" : " Inf");
@@ -1440,15 +1439,6 @@ dump_generic_node (pretty_printer *pp, tree node, int spc, int flags,
real_to_decimal (string, &d, sizeof (string), 0, 1);
pp_string (pp, string);
}
-#else
- {
- HOST_WIDE_INT i;
- unsigned char *p = (unsigned char *) &TREE_REAL_CST (node);
- pp_string (pp, "0x");
- for (i = 0; i < sizeof TREE_REAL_CST (node); i++)
- output_formatted_integer (pp, "%02x", *p++);
- }
-#endif
break;
}