Commit dc38fc2e by Hariharan Sandanagobalane Committed by Hariharan Sandanagobalane

picochip.c (reorder_var_tracking_notes): Drop call_arg_location instructions down the floor.

        * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
        call_arg_location instructions down the floor.

From-SVN: r174322
parent ad5f3d7b
2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
* config/picochip/picochip.c (reorder_var_tracking_notes): Drop
call_arg_location instructions down the floor.
2011-05-26 Vladimir Makarov <vmakarov@redhat.com> 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/49154 PR rtl-optimization/49154
......
...@@ -3243,13 +3243,20 @@ reorder_var_tracking_notes (void) ...@@ -3243,13 +3243,20 @@ reorder_var_tracking_notes (void)
} }
} }
} }
else if (NOTE_P (insn) && NOTE_KIND (insn) == NOTE_INSN_VAR_LOCATION) else if (NOTE_P (insn))
{ {
rtx prev = PREV_INSN (insn); rtx prev = PREV_INSN (insn);
PREV_INSN (next) = prev; PREV_INSN (next) = prev;
NEXT_INSN (prev) = next; NEXT_INSN (prev) = next;
PREV_INSN (insn) = queue; /* Ignore call_arg notes. They are expected to be just after the
queue = insn; call insn. If the call is start of a long VLIW, labels are
emitted in the middle of a VLIW, which our assembler can not
handle. */
if (NOTE_KIND (insn) != NOTE_INSN_CALL_ARG_LOCATION)
{
PREV_INSN (insn) = queue;
queue = insn;
}
} }
} }
/* Make sure we are not dropping debug instructions.*/ /* Make sure we are not dropping debug instructions.*/
......
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