Commit 24086c20 by Eric Botcazou Committed by Eric Botcazou

re PR debug/84545 (FAIL: g++.dg/debug/pr44182.C -gdwarf-2 -O2 (test for excess errors))

	PR debug/84545
	* final.c (rest_of_clean_state): Also look for calls inside sequences.

From-SVN: r257993
parent b9d676b3
2018-02-26 Eric Botcazou <ebotcazou@adacore.com>
PR debug/84545
* final.c (rest_of_clean_state): Also look for calls inside sequences.
2018-02-26 H.J. Lu <hongjiu.lu@intel.com>
PR target/84530
......
......@@ -4845,11 +4845,19 @@ rest_of_clean_state (void)
SET_NEXT_INSN (insn) = NULL;
SET_PREV_INSN (insn) = NULL;
if (CALL_P (insn))
rtx_insn *call_insn = insn;
if (NONJUMP_INSN_P (call_insn)
&& GET_CODE (PATTERN (call_insn)) == SEQUENCE)
{
rtx note = find_reg_note (insn, REG_CALL_ARG_LOCATION, NULL_RTX);
rtx_sequence *seq = as_a <rtx_sequence *> (PATTERN (call_insn));
call_insn = seq->insn (0);
}
if (CALL_P (call_insn))
{
rtx note
= find_reg_note (call_insn, REG_CALL_ARG_LOCATION, NULL_RTX);
if (note)
remove_note (insn, note);
remove_note (call_insn, note);
}
if (final_output
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment