From: Ian Lance Taylor Date: Thu, 27 Jun 1996 15:05:07 +0000 (+0000) Subject: Don't call ADJUST_INSN_LENGTH on an insn inside a sequence X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c0e838fa0e2cdbe96f40b4d209ed83540040148;p=gcc.git Don't call ADJUST_INSN_LENGTH on an insn inside a sequence From-SVN: r12336 --- diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index d3f1e0f03ad..7e0d8cc8f96 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -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) {