final.c (insn_current_reference_address): Use SEQ instead of BRANCH as argument to align_fuzz...

* final.c (insn_current_reference_address):
	Use SEQ instead of BRANCH as argument to align_fuzz, to get a
	proper alignment chain.

From-SVN: r18392
This commit is contained in:
J"orn Rennecke 1998-03-03 22:52:48 +00:00 committed by Jeff Law
parent 3c21589560
commit 2602447552
2 changed files with 6 additions and 3 deletions

View File

@ -1,9 +1,12 @@
Tue Mar 3 21:48:35 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* final.c (insn_current_reference_address):
Use SEQ instead of BRANCH as argument to align_fuzz, to get a
proper alignment chain.
* final.c (max_labelno): New static variable.
(final_scan_insn): Check max_labelno before outputting an
alignment for a label.
(shorten_branches): Remove unused variable length_align.
Tue Mar 3 14:27:23 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>

View File

@ -897,13 +897,13 @@ insn_current_reference_address (branch)
{
/* Forward branch. */
return (insn_last_address + insn_lengths[seq_uid]
- align_fuzz (branch, dest, length_unit_log, ~0));
- align_fuzz (seq, dest, length_unit_log, ~0));
}
else
{
/* Backward branch. */
return (insn_current_address
+ align_fuzz (dest, branch, length_unit_log, ~0));
+ align_fuzz (seq, branch, length_unit_log, ~0));
}
}
#endif /* HAVE_ATTR_length */