aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mips.h
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2002-10-12 05:23:33 +0000
committerAlexandre Oliva <aoliva@redhat.com>2002-10-12 05:23:33 +0000
commit4a6a3df43dbb37853a7b88b10ae97d9ec5daf987 (patch)
treeda3f88ce6a2ccea5e5be352f6d7f7d7984d382e6 /gas/config/tc-mips.h
parente2b23ee9228eda96f94006d4caf05d0bcaf4de17 (diff)
downloadgdb-4a6a3df43dbb37853a7b88b10ae97d9ec5daf987.zip
gdb-4a6a3df43dbb37853a7b88b10ae97d9ec5daf987.tar.gz
gdb-4a6a3df43dbb37853a7b88b10ae97d9ec5daf987.tar.bz2
* config/tc-mips.h (mips_relax_frag): Take segment as argument.
(md_relax_frag): Adjust macro. * config/tc-mips.c (mips_relax_branch): New variable. (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY, RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New. (RELAX_MIPS16_P): Adjust. (append_insn): Emit branch to non-constant in a frag_var if branch-relaxation is desirable and possible. (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options. (OPTION_ELF_BASE): Adjust. (md_parse_option): Handle new options. (md_apply_fix3): Update comment on EMBEDDED_PIC conditional branch relaxation. (relaxed_branch_length): New function. (md_estimate_size_before_relax): Handle branch frags. (mips_relax_frag): Likewise. (md_convert_frag): Handle branch frags. Warn if branch is relaxed.
Diffstat (limited to 'gas/config/tc-mips.h')
-rw-r--r--gas/config/tc-mips.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/config/tc-mips.h b/gas/config/tc-mips.h
index 13982a6..76c13dc 100644
--- a/gas/config/tc-mips.h
+++ b/gas/config/tc-mips.h
@@ -49,8 +49,9 @@ struct expressionS;
relocation: */
#define MAX_GPREL_OFFSET (0x7FF0)
-#define md_relax_frag(segment, fragp, stretch) mips_relax_frag(fragp, stretch)
-extern int mips_relax_frag PARAMS ((struct frag *, long));
+#define md_relax_frag(segment, fragp, stretch) \
+ mips_relax_frag(segment, fragp, stretch)
+extern int mips_relax_frag PARAMS ((asection *, struct frag *, long));
#define md_undefined_symbol(name) (0)
#define md_operand(x)