aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.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/omp-low.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/omp-low.cc')
-rw-r--r--gcc/omp-low.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/omp-low.cc b/gcc/omp-low.cc
index f54dea9..e9e4bd0 100644
--- a/gcc/omp-low.cc
+++ b/gcc/omp-low.cc
@@ -4524,12 +4524,9 @@ omp_reduction_init_op (location_t loc, enum tree_code op, tree type)
case MAX_EXPR:
if (SCALAR_FLOAT_TYPE_P (type))
{
- REAL_VALUE_TYPE max, min;
+ REAL_VALUE_TYPE min;
if (HONOR_INFINITIES (type))
- {
- real_inf (&max);
- real_arithmetic (&min, NEGATE_EXPR, &max, NULL);
- }
+ real_arithmetic (&min, NEGATE_EXPR, &dconstinf, NULL);
else
real_maxval (&min, 1, TYPE_MODE (type));
return build_real (type, min);
@@ -4551,7 +4548,7 @@ omp_reduction_init_op (location_t loc, enum tree_code op, tree type)
{
REAL_VALUE_TYPE max;
if (HONOR_INFINITIES (type))
- real_inf (&max);
+ max = dconstinf;
else
real_maxval (&max, 0, TYPE_MODE (type));
return build_real (type, max);