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
+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>
PR target/66114
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;