diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-01-09 15:33:47 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-01-09 15:33:47 +0000 |
commit | b816f339f40ce7d9b5d9aa404de8642598ffc205 (patch) | |
tree | 572f076f9b1cdef851ccfc445f75d2985f617675 /gcc/final.c | |
parent | de99511b75b9c9a8c85b77f1019041a280da45bf (diff) | |
download | gcc-b816f339f40ce7d9b5d9aa404de8642598ffc205.zip gcc-b816f339f40ce7d9b5d9aa404de8642598ffc205.tar.gz gcc-b816f339f40ce7d9b5d9aa404de8642598ffc205.tar.bz2 |
final.c (FIRST_INSN_ADDRESS): Remove.
* final.c (FIRST_INSN_ADDRESS): Remove.
(shorten_branches): Don't use FIRST_INSN_ADDRESS.
* system.h (FIRST_INSN_ADDRESS): Poison.
* config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
* config/m32r/m32r-protos.h: Remove the prototype for
m32r_first_insn_address.
* config/m32r/m32r.c (m32r_first_insn_address): Remove.
* config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
* doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
From-SVN: r75584
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/final.c b/gcc/final.c index d3785fd..ea9aa4b 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -736,12 +736,6 @@ compute_alignments (void) /* Make a pass over all insns and compute their actual lengths by shortening any branches of variable length if possible. */ -/* Give a default value for the lowest address in a function. */ - -#ifndef FIRST_INSN_ADDRESS -#define FIRST_INSN_ADDRESS 0 -#endif - /* shorten_branches might be called multiple times: for example, the SH port splits out-of-range conditional branches in MACHINE_DEPENDENT_REORG. In order to do this, it needs proper length information, which it obtains @@ -971,7 +965,7 @@ shorten_branches (rtx first ATTRIBUTE_UNUSED) #endif /* CASE_VECTOR_SHORTEN_MODE */ /* Compute initial lengths, addresses, and varying flags for each insn. */ - for (insn_current_address = FIRST_INSN_ADDRESS, insn = first; + for (insn_current_address = 0, insn = first; insn != 0; insn_current_address += insn_lengths[uid], insn = NEXT_INSN (insn)) { @@ -1072,7 +1066,7 @@ shorten_branches (rtx first ATTRIBUTE_UNUSED) { something_changed = 0; insn_current_align = MAX_CODE_ALIGN - 1; - for (insn_current_address = FIRST_INSN_ADDRESS, insn = first; + for (insn_current_address = 0, insn = first; insn != 0; insn = NEXT_INSN (insn)) { |