aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.cc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2022-09-01 17:00:14 +0200
committerAldy Hernandez <aldyh@redhat.com>2022-09-02 21:35:21 +0200
commitbb9d434404b559a11bd2f85f0ce8085c77b8c4c8 (patch)
tree86bf50ea24d0294bdcf00a51b2ac3352fa532126 /gcc/tree.cc
parent68c23af0dd7403c95c43310edc15669d4dacb005 (diff)
downloadgcc-bb9d434404b559a11bd2f85f0ce8085c77b8c4c8.zip
gcc-bb9d434404b559a11bd2f85f0ce8085c77b8c4c8.tar.gz
gcc-bb9d434404b559a11bd2f85f0ce8085c77b8c4c8.tar.bz2
Convert rest of compiler to dconst[n]inf.
gcc/ChangeLog: * builtins.cc (fold_builtin_inf): Convert use of real_info to dconstinf. (fold_builtin_fpclassify): Same. * fold-const-call.cc (fold_const_call_cc): Same. * match.pd: Same. * omp-low.cc (omp_reduction_init_op): Same. * realmpfr.cc (real_from_mpfr): Same. * tree.cc (build_complex_inf): Same.
Diffstat (limited to 'gcc/tree.cc')
-rw-r--r--gcc/tree.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree.cc b/gcc/tree.cc
index 007c932..0179c0f 100644
--- a/gcc/tree.cc
+++ b/gcc/tree.cc
@@ -2535,11 +2535,10 @@ build_complex (tree type, tree real, tree imag)
tree
build_complex_inf (tree type, bool neg)
{
- REAL_VALUE_TYPE rinf, rzero = dconst0;
+ REAL_VALUE_TYPE rzero = dconst0;
- real_inf (&rinf);
rzero.sign = neg;
- return build_complex (type, build_real (TREE_TYPE (type), rinf),
+ return build_complex (type, build_real (TREE_TYPE (type), dconstinf),
build_real (TREE_TYPE (type), rzero));
}