From 78c7d18e018cba001b1f4bb72552818b7da5396a Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Thu, 24 Apr 2014 15:33:30 +0000 Subject: [PATCH] fixup sh bustage after r209483 When making pass::execute functions take a function * argument I missed the sh_treg_combine pass, so fix that here. gcc/ * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take function * argument. From-SVN: r209751 --- gcc/ChangeLog | 5 +++++ gcc/config/sh/sh_treg_combine.cc | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7cab1ded1fa1..5e91288075d9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-04-24 Trevor Saunders + + * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take + function * argument. + 2014-04-24 Alan Lawrence * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian. diff --git a/gcc/config/sh/sh_treg_combine.cc b/gcc/config/sh/sh_treg_combine.cc index 57eddd29406f..254847971722 100644 --- a/gcc/config/sh/sh_treg_combine.cc +++ b/gcc/config/sh/sh_treg_combine.cc @@ -425,7 +425,7 @@ public: sh_treg_combine (gcc::context* ctx, bool split_insns, const char* name); virtual ~sh_treg_combine (void); virtual bool gate (function *); - virtual unsigned int execute (void); + virtual unsigned int execute (function *); private: // Type of ccreg store that is supported. @@ -1441,7 +1441,7 @@ sh_treg_combine::gate (function *) } unsigned int -sh_treg_combine::execute (void) +sh_treg_combine::execute (function *fun) { unsigned int ccr0 = INVALID_REGNUM; unsigned int ccr1 = INVALID_REGNUM; @@ -1468,7 +1468,7 @@ sh_treg_combine::execute (void) // Look for basic blocks that end with a conditional branch and try to // optimize them. basic_block bb; - FOR_EACH_BB_FN (bb, cfun) + FOR_EACH_BB_FN (bb, fun) { rtx i = BB_END (bb); if (any_condjump_p (i) && onlyjump_p (i)) -- 2.47.3