]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/dce.c
pass cfun to pass::execute
[thirdparty/gcc.git] / gcc / dce.c
index 1d290e37ee44ed982d16d8da44fd9f43e26d01e6..344e31af0746d515de50d281632194de110159cd 100644 (file)
--- a/gcc/dce.c
+++ b/gcc/dce.c
@@ -808,7 +808,10 @@ public:
       return optimize > 1 && flag_dce && dbg_cnt (dce_ud);
     }
 
-  unsigned int execute () { return rest_of_handle_ud_dce (); }
+  virtual unsigned int execute (function *)
+    {
+      return rest_of_handle_ud_dce ();
+    }
 
 }; // class pass_ud_rtl_dce
 
@@ -1237,7 +1240,10 @@ public:
       return optimize > 0 && flag_dce && dbg_cnt (dce_fast);
     }
 
-  unsigned int execute () { return rest_of_handle_fast_dce (); }
+  virtual unsigned int execute (function *)
+    {
+      return rest_of_handle_fast_dce ();
+    }
 
 }; // class pass_fast_rtl_dce