Commit 24966da6 by Bernd Edlinger Committed by Bernd Edlinger

re PR target/66747 (The commit r225260 broke the builds of the…

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
parent 2e431643
2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR target/66747
* config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
2015-07-04 John David Anglin <danglin@gcc.gnu.org> 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
PR target/66114 PR target/66114
......
...@@ -9790,17 +9790,18 @@ mips16_cfun_returns_in_fpr_p (void) ...@@ -9790,17 +9790,18 @@ mips16_cfun_returns_in_fpr_p (void)
static bool static bool
mips_find_gp_ref (bool *cache, bool (*pred) (rtx_insn *)) mips_find_gp_ref (bool *cache, bool (*pred) (rtx_insn *))
{ {
rtx_insn *insn; rtx_insn *insn, *subinsn;
if (!*cache) if (!*cache)
{ {
push_topmost_sequence (); push_topmost_sequence ();
for (insn = get_insns (); insn; insn = NEXT_INSN (insn)) for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
if (USEFUL_INSN_P (insn) && pred (insn)) FOR_EACH_SUBINSN (subinsn, insn)
{ if (USEFUL_INSN_P (subinsn) && pred (subinsn))
*cache = true; {
break; *cache = true;
} break;
}
pop_topmost_sequence (); pop_topmost_sequence ();
} }
return *cache; return *cache;
......
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