]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute): Add missing function*...
authorOleg Endo <olegendo@gcc.gnu.org>
Sat, 3 May 2014 20:22:09 +0000 (20:22 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Sat, 3 May 2014 20:22:09 +0000 (20:22 +0000)
* config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
Add missing function* argument.

From-SVN: r210040

gcc/ChangeLog
gcc/config/sh/sh_optimize_sett_clrt.cc

index bcf7870ce41c296f4d8e5785840666e5eb1540b6..ffb0163fd27e73a36a46189bda1c6b2dcee49fad 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * lra-constraints.c (valid_address_p): Move earlier in file.
index 5b1afcd961bf189e4978ed37dba47b04fd4ebd82..84ad2999de7814dce3ede48af1562384a51e3854 100644 (file)
@@ -79,8 +79,8 @@ class sh_optimize_sett_clrt : public rtl_opt_pass
 public:
   sh_optimize_sett_clrt (gcc::context* ctx, const char* name);
   virtual ~sh_optimize_sett_clrt (void);
-  virtual bool gate (function *);
-  virtual unsigned int execute (void);
+  virtual bool gate (function*);
+  virtual unsigned int execute (function* fun);
 
 private:
   static const pass_data default_pass_data;
@@ -161,13 +161,13 @@ sh_optimize_sett_clrt::~sh_optimize_sett_clrt (void)
 }
 
 bool
-sh_optimize_sett_clrt::gate (function *)
+sh_optimize_sett_clrt::gate (function*)
 {
   return optimize > 0;
 }
 
 unsigned int
-sh_optimize_sett_clrt::execute (void)
+sh_optimize_sett_clrt::execute (function* fun)
 {
   unsigned int ccr0 = INVALID_REGNUM;
   unsigned int ccr1 = INVALID_REGNUM;
@@ -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
   // be optimized.
   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));
         i != NULL_RTX && i != BB_END (bb); i = next_i)
       {