* config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
authorolegendo <olegendo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 3 May 2014 20:22:09 +0000 (20:22 +0000)
committerolegendo <olegendo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 3 May 2014 20:22:09 +0000 (20:22 +0000)
Add missing function* argument.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210040 138bc75d-0d04-0410-961f-82ee72b054a4

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

index bcf7870..ffb0163 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 5b1afcd..84ad299 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)
       {