]> git.ipfire.org Git - thirdparty/gcc.git/commit
Always check result from build_<COND> in range-op-float.cc
authorAldy Hernandez <aldyh@redhat.com>
Wed, 19 Oct 2022 15:05:39 +0000 (17:05 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Wed, 19 Oct 2022 21:16:12 +0000 (23:16 +0200)
commitf0068278f7e75507c1f40e7c829d7a9d6ade269c
tree398431e12f2d15c398043a90047a5d9c803b7b91
parentebe87edadc4a3f15a6a0d0c1d4a198e0ea37d8b5
Always check result from build_<COND> in range-op-float.cc

A result of false from build_<COND> in range-ops means the result is
final and needs no further adjustments.  This patch documents this,
and changes all uses to check the result.  There should be no change
in functionality.

gcc/ChangeLog:

* range-op-float.cc (build_le): Document result.
(build_lt): Same.
(build_ge): Same.
(foperator_ge::op2_range): Check result of build_*.
(foperator_unordered_le::op1_range): Same.
(foperator_unordered_le::op2_range): Same.
(foperator_unordered_gt::op1_range): Same.
(foperator_unordered_gt::op2_range): Same.
(foperator_unordered_ge::op1_range): Same.
(foperator_unordered_ge::op2_range): Same.
gcc/range-op-float.cc