aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2015-07-04 19:02:18 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2015-07-04 19:02:18 +0000
commit24966da610f9ccbb6640cf3801fae2fe027bb2ae (patch)
tree99128022d16397595675ad1aeb6111c065443e7b /gcc/config
parent2e431643836cae690344bd77d38772c5ac73dd00 (diff)
downloadgcc-24966da610f9ccbb6640cf3801fae2fe027bb2ae.zip
gcc-24966da610f9ccbb6640cf3801fae2fe027bb2ae.tar.gz
gcc-24966da610f9ccbb6640cf3801fae2fe027bb2ae.tar.bz2
re PR target/66747 (The commit r225260 broke the builds of the mips-{mti,img}-linux-gnu tool chains.)
2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de> PR target/66747 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences. From-SVN: r225416
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/mips/mips.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index da0943b..95a0ae3 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -9790,17 +9790,18 @@ mips16_cfun_returns_in_fpr_p (void)
static bool
mips_find_gp_ref (bool *cache, bool (*pred) (rtx_insn *))
{
- rtx_insn *insn;
+ rtx_insn *insn, *subinsn;
if (!*cache)
{
push_topmost_sequence ();
for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
- if (USEFUL_INSN_P (insn) && pred (insn))
- {
- *cache = true;
- break;
- }
+ FOR_EACH_SUBINSN (subinsn, insn)
+ if (USEFUL_INSN_P (subinsn) && pred (subinsn))
+ {
+ *cache = true;
+ break;
+ }
pop_topmost_sequence ();
}
return *cache;