https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66747

--- Comment #2 from Bernd Edlinger <edlinger at gcc dot gnu.org> ---
get_attr_got fails when called with a SEQUENCE.
I am not sure if reg_overlap_mentioned_p works with SEQUENCE.


--- gcc/config/mips/mips.c.jj   2015-06-08 23:06:50.000000000 +0200
+++ gcc/config/mips/mips.c      2015-07-03 11:38:48.962336295 +0200
@@ -9902,7 +9902,7 @@ mips_cfun_has_inflexible_gp_ref_p (void)
 static bool
 mips_insn_has_flexible_gp_ref_p (rtx_insn *insn)
 {
-  return (get_attr_got (insn) != GOT_UNSET
+  return ((PATTERN (insn)->code != SEQUENCE && get_attr_got (insn) !=
GOT_UNSET)
          || mips_small_data_pattern_p (PATTERN (insn))
          || reg_overlap_mentioned_p (pic_offset_table_rtx, PATTERN (insn)));
 }

Reply via email to