summaryrefslogtreecommitdiff
path: root/gcc/ipa-pure-const.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ipa-pure-const.c')
-rw-r--r--gcc/ipa-pure-const.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c
index eac3636b7a5..eab7633b1de 100644
--- a/gcc/ipa-pure-const.c
+++ b/gcc/ipa-pure-const.c
@@ -1541,7 +1541,7 @@ public:
{}
/* opt_pass methods: */
- bool gate () { return gate_pure_const (); }
+ virtual bool gate (function *) { return gate_pure_const (); }
unsigned int execute () { return propagate (); }
}; // class pass_ipa_pure_const
@@ -1716,7 +1716,7 @@ public:
/* opt_pass methods: */
opt_pass * clone () { return new pass_local_pure_const (m_ctxt); }
- bool gate () { return gate_pure_const (); }
+ virtual bool gate (function *) { return gate_pure_const (); }
unsigned int execute () { return local_pure_const (); }
}; // class pass_local_pure_const
@@ -1740,12 +1740,6 @@ execute_warn_function_noreturn (void)
return 0;
}
-static bool
-gate_warn_function_noreturn (void)
-{
- return warn_suggest_attribute_noreturn;
-}
-
namespace {
const pass_data pass_data_warn_function_noreturn =
@@ -1770,7 +1764,7 @@ public:
{}
/* opt_pass methods: */
- bool gate () { return gate_warn_function_noreturn (); }
+ virtual bool gate (function *) { return warn_suggest_attribute_noreturn; }
unsigned int execute () { return execute_warn_function_noreturn (); }
}; // class pass_warn_function_noreturn