iq2000.c (final_prescan_insn): Do not separate a CALL and NOTE_INSN_CALL_ARG_LOCATION.

* config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
	CALL and NOTE_INSN_CALL_ARG_LOCATION.

From-SVN: r246761
This commit is contained in:
Jeff Law 2017-04-07 08:26:05 -06:00 committed by Jeff Law
parent 3b6cb9e37e
commit e3d1043293
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -1540,8 +1540,13 @@ final_prescan_insn (rtx_insn *insn, rtx opvec[] ATTRIBUTE_UNUSED,
|| (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);
}