From: Bernd Edlinger Date: Sat, 4 Jul 2015 19:02:18 +0000 (+0000) Subject: re PR target/66747 (The commit r225260 broke the builds of the mips-{mti,img}-linux... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24966da610f9ccbb6640cf3801fae2fe027bb2ae;p=gcc.git re PR target/66747 (The commit r225260 broke the builds of the mips-{mti,img}-linux-gnu tool chains.) 2015-07-04 Bernd Edlinger PR target/66747 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences. From-SVN: r225416 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 916ba937319..adb30dbf884 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-07-04 Bernd Edlinger + + PR target/66747 + * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences. + 2015-07-04 John David Anglin PR target/66114 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index da0943b5df3..95a0ae3f44c 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;