diff options
author | Dmitry Diky <diwil@spec.ru> | 2005-08-12 11:54:23 +0000 |
---|---|---|
committer | Dmitry Diky <diwil@spec.ru> | 2005-08-12 11:54:23 +0000 |
commit | 77592908ee412274452a954c5f0347bbc95497d3 (patch) | |
tree | 388d6692f79da200d285b7ac6358b2d1b14a645d /gas/config/tc-msp430.h | |
parent | fa9ee72b809ca1d54a80ac90043b315b33bb6a8a (diff) | |
download | gdb-77592908ee412274452a954c5f0347bbc95497d3.zip gdb-77592908ee412274452a954c5f0347bbc95497d3.tar.gz gdb-77592908ee412274452a954c5f0347bbc95497d3.tar.bz2 |
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.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/config/tc-msp430.h b/gas/config/tc-msp430.h index 632e2a9..9fef126 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; |