aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2022-11-08 23:49:04 +0100
committerAldy Hernandez <aldyh@redhat.com>2022-11-09 07:58:05 +0100
commit0ef5649e9b9f409cf1e133e8670043f066ba3acb (patch)
treedd71c5ac232c4ca23424a52d0c2c771eb36af623 /gcc/fortran
parent68b0615be2aaff3a8ce91ba7cd0f69ebbd93702c (diff)
downloadgcc-0ef5649e9b9f409cf1e133e8670043f066ba3acb.zip
gcc-0ef5649e9b9f409cf1e133e8670043f066ba3acb.tar.gz
gcc-0ef5649e9b9f409cf1e133e8670043f066ba3acb.tar.bz2
[range-op-float] Abstract out binary operator code out of PLUS_EXPR entry.
The PLUS_EXPR was always meant to be a template for further development, since most of the binary operators will share a similar structure. This patch abstracts out the common bits into the default definition for range_operator_float::fold_range() and provides an rv_fold() to be implemented by the individual entries wishing to use the generic folder. This is akin to what we do with fold_range() and wi_fold() in the integer version of range-ops. gcc/ChangeLog: * range-op-float.cc (range_operator_float::fold_range): Abstract out from foperator_plus. (range_operator_float::rv_fold): New. (foperator_plus::fold_range): Remove. (foperator_plus::rv_fold): New. (propagate_nans): Remove. * range-op.h (class range_operator_float): Add rv_fold.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions