aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2024-10-21 18:20:10 -0400
committerAndrew MacLeod <amacleod@redhat.com>2024-10-24 08:49:29 -0400
commitf9d94c1d5cf051350a39a9816f35cf94d351f6da (patch)
treee4ed62762a38803741c90e38199ea1ee8c5af676 /gcc
parent7173e2ff30c1e42168db4ac1dedc12ae1518faab (diff)
downloadgcc-f9d94c1d5cf051350a39a9816f35cf94d351f6da.zip
gcc-f9d94c1d5cf051350a39a9816f35cf94d351f6da.tar.gz
gcc-f9d94c1d5cf051350a39a9816f35cf94d351f6da.tar.bz2
Remove pointer_and_operator.
This operator class predates the dispatch system, and is no longer used. The functionality of wi_fold has been replaced by operator_bitwise_and::fold_range with prange operaands. * range-op-ptr.cc (class pointer_and_operator): Remove. (pointer_and_operator::wi_fold): Remove.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/range-op-ptr.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/gcc/range-op-ptr.cc b/gcc/range-op-ptr.cc
index f8ce62d..dd312a8 100644
--- a/gcc/range-op-ptr.cc
+++ b/gcc/range-op-ptr.cc
@@ -379,29 +379,6 @@ pointer_plus_operator::op2_range (irange &r, tree type,
return true;
}
-class pointer_and_operator : public range_operator
-{
-public:
- virtual void wi_fold (irange &r, tree type,
- const wide_int &lh_lb, const wide_int &lh_ub,
- const wide_int &rh_lb, const wide_int &rh_ub) const;
-} op_pointer_and;
-
-void
-pointer_and_operator::wi_fold (irange &r, tree type,
- const wide_int &lh_lb,
- const wide_int &lh_ub,
- const wide_int &rh_lb ATTRIBUTE_UNUSED,
- const wide_int &rh_ub ATTRIBUTE_UNUSED) const
-{
- // For pointer types, we are really only interested in asserting
- // whether the expression evaluates to non-NULL.
- if (wi_zero_p (type, lh_lb, lh_ub) || wi_zero_p (type, lh_lb, lh_ub))
- r.set_zero (type);
- else
- r.set_varying (type);
-}
-
class pointer_or_operator : public range_operator
{