Commit 579f4e64 by Oleg Endo

sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute): Add missing function* argument.

	* config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
	Add missing function* argument.

From-SVN: r210040
parent 0be7287d
2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
* config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
Add missing function* argument.
2014-05-03 Richard Sandiford <rdsandiford@googlemail.com> 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
* lra-constraints.c (valid_address_p): Move earlier in file. * lra-constraints.c (valid_address_p): Move earlier in file.
......
...@@ -79,8 +79,8 @@ class sh_optimize_sett_clrt : public rtl_opt_pass ...@@ -79,8 +79,8 @@ class sh_optimize_sett_clrt : public rtl_opt_pass
public: public:
sh_optimize_sett_clrt (gcc::context* ctx, const char* name); sh_optimize_sett_clrt (gcc::context* ctx, const char* name);
virtual ~sh_optimize_sett_clrt (void); virtual ~sh_optimize_sett_clrt (void);
virtual bool gate (function *); virtual bool gate (function*);
virtual unsigned int execute (void); virtual unsigned int execute (function* fun);
private: private:
static const pass_data default_pass_data; static const pass_data default_pass_data;
...@@ -161,13 +161,13 @@ sh_optimize_sett_clrt::~sh_optimize_sett_clrt (void) ...@@ -161,13 +161,13 @@ sh_optimize_sett_clrt::~sh_optimize_sett_clrt (void)
} }
bool bool
sh_optimize_sett_clrt::gate (function *) sh_optimize_sett_clrt::gate (function*)
{ {
return optimize > 0; return optimize > 0;
} }
unsigned int unsigned int
sh_optimize_sett_clrt::execute (void) sh_optimize_sett_clrt::execute (function* fun)
{ {
unsigned int ccr0 = INVALID_REGNUM; unsigned int ccr0 = INVALID_REGNUM;
unsigned int ccr1 = INVALID_REGNUM; unsigned int ccr1 = INVALID_REGNUM;
...@@ -205,7 +205,7 @@ sh_optimize_sett_clrt::execute (void) ...@@ -205,7 +205,7 @@ sh_optimize_sett_clrt::execute (void)
// Look for insns that set the ccreg to a constant value and see if it can // Look for insns that set the ccreg to a constant value and see if it can
// be optimized. // be optimized.
basic_block bb; basic_block bb;
FOR_EACH_BB_REVERSE_FN (bb, cfun) FOR_EACH_BB_REVERSE_FN (bb, fun)
for (rtx next_i, i = NEXT_INSN (BB_HEAD (bb)); for (rtx next_i, i = NEXT_INSN (BB_HEAD (bb));
i != NULL_RTX && i != BB_END (bb); i = next_i) i != NULL_RTX && i != BB_END (bb); i = next_i)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment