apply gcc original rev. 1.144
> 2000-09-19 Bernd Schmidt <bernds@redhat.co.uk> > > * final.c (insn_current_reference_address): Use INSN_SHUID of seq > rather than that of branch. > (shorten_branches): Don't increment insn_current_address twice.
This commit is contained in:
parent
df12f106c5
commit
e19e995528
3
gnu/dist/gcc/final.c
vendored
3
gnu/dist/gcc/final.c
vendored
@ -947,7 +947,7 @@ insn_current_reference_address (branch)
|
||||
return insn_current_address;
|
||||
dest = JUMP_LABEL (branch);
|
||||
/* BRANCH has no proper alignment chain set, so use SEQ. */
|
||||
if (INSN_SHUID (branch) < INSN_SHUID (dest))
|
||||
if (INSN_SHUID (seq) < INSN_SHUID (dest))
|
||||
{
|
||||
/* Forward branch. */
|
||||
return (insn_last_address + insn_lengths[seq_uid]
|
||||
@ -1246,7 +1246,6 @@ shorten_branches (first)
|
||||
int align = 1 << log;
|
||||
int new_address = (insn_current_address + align - 1) & -align;
|
||||
insn_lengths[uid] = new_address - insn_current_address;
|
||||
insn_current_address = new_address;
|
||||
}
|
||||
}
|
||||
|
||||
|
3
gnu/dist/toolchain/gcc/final.c
vendored
3
gnu/dist/toolchain/gcc/final.c
vendored
@ -942,7 +942,7 @@ insn_current_reference_address (branch)
|
||||
return insn_current_address;
|
||||
dest = JUMP_LABEL (branch);
|
||||
/* BRANCH has no proper alignment chain set, so use SEQ. */
|
||||
if (INSN_SHUID (branch) < INSN_SHUID (dest))
|
||||
if (INSN_SHUID (seq) < INSN_SHUID (dest))
|
||||
{
|
||||
/* Forward branch. */
|
||||
return (insn_last_address + insn_lengths[seq_uid]
|
||||
@ -1244,7 +1244,6 @@ shorten_branches (first)
|
||||
int align = 1 << log;
|
||||
int new_address = (insn_current_address + align - 1) & -align;
|
||||
insn_lengths[uid] = new_address - insn_current_address;
|
||||
insn_current_address = new_address;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user