aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-m32r.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2001-02-13 21:27:52 +0000
committerIan Lance Taylor <ian@airs.com>2001-02-13 21:27:52 +0000
commitc842b53ae1792ed3bc68759dee24dffdbf3bed32 (patch)
tree9112893548d98202180c3765c1e173b5a0a48fbc /gas/config/tc-m32r.h
parent6433dece0aec566a5f07be9512ad4c39ff3d5b72 (diff)
downloadgdb-c842b53ae1792ed3bc68759dee24dffdbf3bed32.zip
gdb-c842b53ae1792ed3bc68759dee24dffdbf3bed32.tar.gz
gdb-c842b53ae1792ed3bc68759dee24dffdbf3bed32.tar.bz2
* 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.
Diffstat (limited to 'gas/config/tc-m32r.h')
-rw-r--r--gas/config/tc-m32r.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-m32r.h b/gas/config/tc-m32r.h
index 9e04c19..98bfb8d 100644
--- a/gas/config/tc-m32r.h
+++ b/gas/config/tc-m32r.h
@@ -54,9 +54,9 @@ extern void m32r_prepare_relax_scan ();
#define md_prepare_relax_scan(fragP, address, aim, this_state, this_type) \
m32r_prepare_relax_scan (fragP, address, aim, this_state, this_type)
#else
-extern long m32r_relax_frag PARAMS ((fragS *, long));
-#define md_relax_frag(fragP, stretch) \
-m32r_relax_frag (fragP, stretch)
+extern long m32r_relax_frag PARAMS ((segT, fragS *, long));
+#define md_relax_frag(segment, fragP, stretch) \
+m32r_relax_frag (segment, fragP, stretch)
#endif
/* Account for nop if 32 bit insn falls on odd halfword boundary. */
#define TC_CGEN_MAX_RELAX(insn, len) (6)