* write.c (is_dnrange): Stop as soon as the address becomes
commit0e73942b3a49392f6dc02e5eb61b91bbd7176c72
authorIan Lance Taylor <ian@airs.com>
Tue, 13 Feb 2001 21:27:52 +0000 (13 21:27 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 13 Feb 2001 21:27:52 +0000 (13 21:27 +0000)
treef3171725d7e284e3465d0d0633b6c70fd16cb3f7
parentf373e6c9d6f0a9f96821e63dc17269ce8820e39d
* write.c (is_dnrange): Stop as soon as the address becomes
larger.
(relax_frag): Add segment parameter.  Only call symbol_get_frag
once.  Only call is_dnrange if the symbol is in the same segment,
and the symbol address is larger.
(relax_segment): Pass segment to md_relax_frag and relax_frag.
* write.h (relax_frag): Update declaration.
* config/tc-fr30.c (fr30_relax_frag): Add segment parameter.  Pass
it to relax_frag.
* config/tc-m32r.c (m32r_relax_frag): Likewise.
* config/tc-m32r.h (md_relax_frag): Add segment parameter.
(m32r_relax_frag): Update declaration.
* config/tc-mips.h (md_relax_frag): Add segment parameter.
* config/tc-tic54x.h (md_relax_frag): Likewise.
* doc/internals.texi (CPU backend): Update documentation for
md_relax_frag.
gas/ChangeLog
gas/config/tc-fr30.c
gas/config/tc-m32r.c
gas/config/tc-m32r.h
gas/config/tc-mips.h
gas/config/tc-tic54x.h
gas/doc/internals.texi
gas/write.c
gas/write.h