aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index 60ec9a9..40bc2be 100644
--- 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