]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix some warnings
authorAndrew MacLeod <amacleod@redhat.com>
Mon, 10 Jul 2023 17:58:22 +0000 (13:58 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Fri, 28 Jul 2023 20:23:07 +0000 (16:23 -0400)
PR tree-optimization/110205
* gimple-range-cache.h (ranger_cache::m_estimate): Delete.
* range-op-mixed.h (operator_bitwise_xor::op1_op2_relation_effect):
Add final override.
* range-op.cc (operator_lshift): Add missing final overrides.
(operator_rshift): Ditto.

gcc/gimple-range-cache.h
gcc/range-op-mixed.h
gcc/range-op.cc

index 93d16294d2e7f2ce993160b0a72f92ad65175e74..a0f436b572393b4ef0c19e2c064543af1baf54f6 100644 (file)
@@ -137,7 +137,6 @@ private:
   void exit_range (vrange &r, tree expr, basic_block bb, enum rfd_mode);
   bool edge_range (vrange &r, edge e, tree name, enum rfd_mode);
 
-  phi_analyzer *m_estimate;
   vec<basic_block> m_workback;
   class update_list *m_update;
 };
index 3cb904f9d80455e7aed73debaad192b0742efa45..b623a88cc719c785728a2f59aee0dcd3e969bf72 100644 (file)
@@ -574,7 +574,7 @@ public:
                                        tree type,
                                        const irange &op1_range,
                                        const irange &op2_range,
-                                       relation_kind rel) const;
+                                       relation_kind rel) const final override;
   void update_bitmask (irange &r, const irange &lh,
                       const irange &rh) const final override;
 private:
index 615e5fe00369dbc1b795b93aec01025713304189..19fdff0eb6479b596b7ebe7a34555744d0565cb8 100644 (file)
@@ -2394,22 +2394,21 @@ class operator_lshift : public cross_product_operator
   using range_operator::fold_range;
   using range_operator::op1_range;
 public:
-  virtual bool op1_range (irange &r, tree type,
-                         const irange &lhs,
-                         const irange &op2,
-                         relation_trio rel = TRIO_VARYING) const;
-  virtual bool fold_range (irange &r, tree type,
-                          const irange &op1,
-                          const irange &op2,
-                          relation_trio rel = TRIO_VARYING) const;
+  virtual bool op1_range (irange &r, tree type, const irange &lhs,
+                         const irange &op2, relation_trio rel = TRIO_VARYING)
+    const final override;
+  virtual bool fold_range (irange &r, tree type, const irange &op1,
+                          const irange &op2, relation_trio rel = TRIO_VARYING)
+    const final override;
 
   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;
+                       const wide_int &rh_lb,
+                       const wide_int &rh_ub) const final override;
   virtual bool wi_op_overflows (wide_int &res,
                                tree type,
                                const wide_int &,
-                               const wide_int &) const;
+                               const wide_int &) const final override;
   void update_bitmask (irange &r, const irange &lh,
                       const irange &rh) const final override
     { update_known_bitmask (r, LSHIFT_EXPR, lh, rh); }
@@ -2421,27 +2420,24 @@ class operator_rshift : public cross_product_operator
   using range_operator::op1_range;
   using range_operator::lhs_op1_relation;
 public:
-  virtual bool fold_range (irange &r, tree type,
-                          const irange &op1,
-                          const irange &op2,
-                          relation_trio rel = TRIO_VARYING) const;
+  virtual bool fold_range (irange &r, tree type, const irange &op1,
+                          const irange &op2, relation_trio rel = TRIO_VARYING)
+   const final override;
   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;
+                       const wide_int &rh_ub) const final override;
   virtual bool wi_op_overflows (wide_int &res,
                                tree type,
                                const wide_int &w0,
-                               const wide_int &w1) const;
-  virtual bool op1_range (irange &, tree type,
-                         const irange &lhs,
-                         const irange &op2,
-                         relation_trio rel = TRIO_VARYING) const;
-  virtual relation_kind lhs_op1_relation (const irange &lhs,
-                                          const irange &op1,
-                                          const irange &op2,
-                                          relation_kind rel) const;
+                               const wide_int &w1) const final override;
+  virtual bool op1_range (irange &, tree type, const irange &lhs,
+                         const irange &op2, relation_trio rel = TRIO_VARYING)
+    const final override;
+  virtual relation_kind lhs_op1_relation (const irange &lhs, const irange &op1,
+                                         const irange &op2, relation_kind rel)
+    const final override;
   void update_bitmask (irange &r, const irange &lh,
                       const irange &rh) const final override
     { update_known_bitmask (r, RSHIFT_EXPR, lh, rh); }