* config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
CALL and NOTE_INSN_CALL_ARG_LOCATION.
From-SVN: r246761
+2017-04-07 Jeff Law <law@redhat.com>
+
+ * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
+ CALL and NOTE_INSN_CALL_ARG_LOCATION.
+
2017-04-07 Martin Liska <mliska@suse.cz>
PR target/79889
|| (GET_CODE (PATTERN (insn)) == RETURN))
&& NEXT_INSN (PREV_INSN (insn)) == insn)
{
- rtx_insn *nop_insn = emit_insn_after (gen_nop (), insn);
+ rtx_insn *tmp = insn;
+ while (NEXT_INSN (tmp)
+ && NOTE_P (NEXT_INSN (tmp))
+ && NOTE_KIND (NEXT_INSN (tmp)) == NOTE_INSN_CALL_ARG_LOCATION)
+ tmp = NEXT_INSN (tmp);
+ rtx_insn *nop_insn = emit_insn_after (gen_nop (), tmp);
INSN_ADDRESSES_NEW (nop_insn, -1);
}