summaryrefslogtreecommitdiff
path: root/gas/config/tc-msp430.h
diff options
context:
space:
mode:
authorDmitry Diky <diwil@spec.ru>2005-08-12 11:54:23 +0000
committerDmitry Diky <diwil@spec.ru>2005-08-12 11:54:23 +0000
commit77592908ee412274452a954c5f0347bbc95497d3 (patch)
tree388d6692f79da200d285b7ac6358b2d1b14a645d /gas/config/tc-msp430.h
parentfa9ee72b809ca1d54a80ac90043b315b33bb6a8a (diff)
2005-08-12 Dmitry Diky <diwil@spec.ru>
* config/tc-msp430.c (msp430_enable_relax): New flag. (msp430_enable_polys): Likewise. (OPTION_RELAX): New option. (OPTION_POLYMORPHS): Likewise. (md_longopts): New long options. (md_show_usage): Updated. (md_parse_option): Add new options handler. (msp430_operands): Add check if polymorph insns are enabled. (msp430_force_relocation_local): New function. (md_apply_fix): Now delete relocs according to new flags combination. (msp430_relax_frag): Convert long branches to short branches only if flag msp430_enable_relax is set. * config/tc-msp430.h (TC_FORCE_RELOCATION_LOCAL): Defined. (msp430_force_relocation_local): Likewise. * doc/c-msp430.texi: Describe new options.
Diffstat (limited to 'gas/config/tc-msp430.h')
-rw-r--r--gas/config/tc-msp430.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/config/tc-msp430.h b/gas/config/tc-msp430.h
index 632e2a923b..9fef126e55 100644
--- a/gas/config/tc-msp430.h
+++ b/gas/config/tc-msp430.h
@@ -112,3 +112,11 @@ extern long md_pcrel_from_section (struct fix *, segT);
#define md_relax_frag(SEG, FRAGP, STRETCH) \
msp430_relax_frag (SEG, FRAGP, STRETCH)
extern long msp430_relax_frag (segT, fragS *, long);
+
+#define TC_FORCE_RELOCATION_LOCAL(FIX) \
+ msp430_force_relocation_local(FIX)
+extern int msp430_force_relocation_local(struct fix *);
+
+
+extern int msp430_enable_relax;
+extern int msp430_enable_polys;