apply gcc's original rev. 1.105
> Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru> > > * final.c (shorten_branches): Correctly compute length of > asms without operands.
This commit is contained in:
parent
373c220202
commit
07baef4c9d
5
gnu/dist/gcc/final.c
vendored
5
gnu/dist/gcc/final.c
vendored
@ -1273,7 +1273,7 @@ shorten_branches (first)
|
||||
* GET_MODE_SIZE (GET_MODE (body)));
|
||||
/* Alignment is handled by ADDR_VEC_ALIGN. */
|
||||
}
|
||||
else if (asm_noperands (body) >= 0)
|
||||
else if (GET_CODE (body) == ASM_INPUT || asm_noperands (body) >= 0)
|
||||
insn_lengths[uid] = asm_insn_count (body) * insn_default_length (insn);
|
||||
else if (GET_CODE (body) == SEQUENCE)
|
||||
{
|
||||
@ -1293,7 +1293,8 @@ shorten_branches (first)
|
||||
int inner_uid = INSN_UID (inner_insn);
|
||||
int inner_length;
|
||||
|
||||
if (asm_noperands (PATTERN (XVECEXP (body, 0, i))) >= 0)
|
||||
if (GET_CODE (body) == ASM_INPUT
|
||||
|| asm_noperands (PATTERN (XVECEXP (body, 0, i))) >= 0)
|
||||
inner_length = (asm_insn_count (PATTERN (inner_insn))
|
||||
* insn_default_length (inner_insn));
|
||||
else
|
||||
|
5
gnu/dist/toolchain/gcc/final.c
vendored
5
gnu/dist/toolchain/gcc/final.c
vendored
@ -1271,7 +1271,7 @@ shorten_branches (first)
|
||||
* GET_MODE_SIZE (GET_MODE (body)));
|
||||
/* Alignment is handled by ADDR_VEC_ALIGN. */
|
||||
}
|
||||
else if (asm_noperands (body) >= 0)
|
||||
else if (GET_CODE (body) == ASM_INPUT || asm_noperands (body) >= 0)
|
||||
insn_lengths[uid] = asm_insn_count (body) * insn_default_length (insn);
|
||||
else if (GET_CODE (body) == SEQUENCE)
|
||||
{
|
||||
@ -1291,7 +1291,8 @@ shorten_branches (first)
|
||||
int inner_uid = INSN_UID (inner_insn);
|
||||
int inner_length;
|
||||
|
||||
if (asm_noperands (PATTERN (XVECEXP (body, 0, i))) >= 0)
|
||||
if (GET_CODE (body) == ASM_INPUT
|
||||
|| asm_noperands (PATTERN (XVECEXP (body, 0, i))) >= 0)
|
||||
inner_length = (asm_insn_count (PATTERN (inner_insn))
|
||||
* insn_default_length (inner_insn));
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user