]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cse.c
pass cfun to pass::execute
[thirdparty/gcc.git] / gcc / cse.c
index 60ec9a99d7523b0b39b43961d58bb04314c3c247..40bc2be6a018aa34f65f8c8c7f6499643118dab5 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -7510,7 +7510,7 @@ public:
 
   /* opt_pass methods: */
   virtual bool gate (function *) { return optimize > 0; }
-  unsigned int execute () { return rest_of_handle_cse (); }
+  virtual unsigned int execute (function *) { return rest_of_handle_cse (); }
 
 }; // class pass_cse
 
@@ -7587,7 +7587,7 @@ public:
       return optimize > 0 && flag_rerun_cse_after_loop;
     }
 
-  unsigned int execute () { return rest_of_handle_cse2 (); }
+  virtual unsigned int execute (function *) { return rest_of_handle_cse2 (); }
 
 }; // class pass_cse2
 
@@ -7662,9 +7662,10 @@ public:
       return optimize > 0 && flag_rerun_cse_after_global_opts;
     }
 
-  unsigned int execute () {
-    return rest_of_handle_cse_after_global_opts ();
-  }
+  virtual unsigned int execute (function *)
+    {
+      return rest_of_handle_cse_after_global_opts ();
+    }
 
 }; // class pass_cse_after_global_opts