diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2022-10-25 22:22:56 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2022-10-26 08:07:34 +0200 |
commit | 82866f434cfd724b0d976b034445b7816f6c79f9 (patch) | |
tree | 655fa5e8dd36d5dee9ffab714e7b4445732cea63 /gcc/value-range.h | |
parent | 978ec4825c2e5cb0ec03d857ea038440d566ff42 (diff) | |
download | gcc-82866f434cfd724b0d976b034445b7816f6c79f9.zip gcc-82866f434cfd724b0d976b034445b7816f6c79f9.tar.gz gcc-82866f434cfd724b0d976b034445b7816f6c79f9.tar.bz2 |
Convert flag_finite_math_only uses in frange to HONOR_*.
As mentioned earlier, we should be using HONOR_* on types rather than
flag_finite_math_only.
gcc/ChangeLog:
* value-range.cc (frange::set): Use HONOR_*.
(frange::verify_range): Same.
* value-range.h (frange_val_min): Same.
(frange_val_max): Same.
Diffstat (limited to 'gcc/value-range.h')
-rw-r--r-- | gcc/value-range.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/value-range.h b/gcc/value-range.h index b48542a..c87734d 100644 --- a/gcc/value-range.h +++ b/gcc/value-range.h @@ -1201,10 +1201,10 @@ real_min_representable (const_tree type) inline REAL_VALUE_TYPE frange_val_min (const_tree type) { - if (flag_finite_math_only) - return real_min_representable (type); - else + if (HONOR_INFINITIES (type)) return dconstninf; + else + return real_min_representable (type); } // Return the maximum value for TYPE. @@ -1212,10 +1212,10 @@ frange_val_min (const_tree type) inline REAL_VALUE_TYPE frange_val_max (const_tree type) { - if (flag_finite_math_only) - return real_max_representable (type); - else + if (HONOR_INFINITIES (type)) return dconstinf; + else + return real_max_representable (type); } // Return TRUE if R is the minimum value for TYPE. |