Commit 9c0e838f by Ian Lance Taylor

Don't call ADJUST_INSN_LENGTH on an insn inside a sequence

From-SVN: r12336
parent 458c16f7
......@@ -556,10 +556,16 @@ output_branch (logic, insn, operands)
int adjusted_length;
/* Undo the effects of ADJUST_INSN_LENGTH, so that we get the real
length. */
adjusted_length = length;
ADJUST_INSN_LENGTH (insn, adjusted_length);
length -= (adjusted_length - length);
length. If NEXT_INSN (PREV_INSN (insn)) != insn, then the insn
is inside a sequence, and ADJUST_INSN_LENGTH was not called on
it. */
if (PREV_INSN (insn) == NULL
|| NEXT_INSN (PREV_INSN (insn)) == insn)
{
adjusted_length = length;
ADJUST_INSN_LENGTH (insn, adjusted_length);
length -= (adjusted_length - length);
}
switch (length)
{
......
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