gimple-ssa-sprintf.c (sprintf_dom_walker): Remove virtual keyword on FINAL OVERRIDE...
authorJeff Law <law@redhat.com>
Thu, 2 Nov 2017 14:54:58 +0000 (08:54 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 2 Nov 2017 14:54:58 +0000 (08:54 -0600)
* gimple-ssa-sprintf.c (sprintf_dom_walker): Remove
virtual keyword on FINAL OVERRIDE members.

* tree-ssa-propagate.h (ssa_propagation_engine): Group
virtuals together.  Add virtual destructor.
(substitute_and_fold_engine): Similarly.

From-SVN: r254345

gcc/ChangeLog
gcc/gimple-ssa-sprintf.c
gcc/tree-ssa-propagate.h

index 067164afb7170bf34c3556f9840890f1f1be1c0d..56aaf549ce958106418a41cab52f0ccfc7cfce44 100644 (file)
@@ -1,3 +1,12 @@
+2017-11-02  Jeff Law  <law@redhat.com>
+
+       * gimple-ssa-sprintf.c (sprintf_dom_walker): Remove
+       virtual keyword on FINAL OVERRIDE members.
+
+       * tree-ssa-propagate.h (ssa_propagation_engine): Group
+       virtuals together.  Add virtual destructor.
+       (substitute_and_fold_engine): Similarly.
+
 2017-11-02  Jan Hubicka  <hubicka@ucw.cz>
 
        * x86-tune.def (X86_TUNE_USE_INCDEC): Enable for Haswell+.
index 74154138fc9f09172e407dc27ab6cf96c70e92b2..35ceb2cfb75914d26f4245ce25cda0205c4edd8a 100644 (file)
@@ -120,7 +120,7 @@ class sprintf_dom_walker : public dom_walker
   sprintf_dom_walker () : dom_walker (CDI_DOMINATORS) {}
   ~sprintf_dom_walker () {}
 
-  virtual edge before_dom_children (basic_block) FINAL OVERRIDE;
+  edge before_dom_children (basic_block) FINAL OVERRIDE;
   bool handle_gimple_call (gimple_stmt_iterator *);
 
   struct call_info;
index 629ae770ee8f15435898407a46f0be178d5ad4a4..be4500bc83a434071601df6485f71e3d1ff51c0b 100644 (file)
@@ -81,14 +81,16 @@ class ssa_propagation_engine
 {
  public:
 
-  /* Main interface into the propagation engine.  */
-  void ssa_propagate (void);
+  virtual ~ssa_propagation_engine (void) { }
 
   /* Virtual functions the clients must provide to visit statements
      and phi nodes respectively.  */
   virtual enum ssa_prop_result visit_stmt (gimple *, edge *, tree *) = 0;
   virtual enum ssa_prop_result visit_phi (gphi *) = 0;
 
+  /* Main interface into the propagation engine.  */
+  void ssa_propagate (void);
+
  private:
   /* Internal implementation details.  */
   void simulate_stmt (gimple *stmt);
@@ -100,10 +102,12 @@ class ssa_propagation_engine
 class substitute_and_fold_engine
 {
  public:
-  bool substitute_and_fold (void);
-  bool replace_uses_in (gimple *);
+  virtual ~substitute_and_fold_engine (void) { }
   virtual bool fold_stmt (gimple_stmt_iterator *) { return false; }
   virtual tree get_value (tree) { return NULL_TREE; }
+
+  bool substitute_and_fold (void);
+  bool replace_uses_in (gimple *);
   bool replace_phi_args_in (gphi *);
 };