diff options
author | DJ Delorie <dj@redhat.com> | 2014-03-20 17:50:49 -0400 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2014-03-20 17:56:01 -0400 |
commit | 0c315784bf5f5d972dd85f5f621ed9674efc5665 (patch) | |
tree | 4f0b5a434c7f3c6c0a123b1fd4e7ab98029ac214 /gas/config/tc-rl78.h | |
parent | deba7593bb5b6e5159f5f0ea0afecd69125057a7 (diff) | |
download | gdb-0c315784bf5f5d972dd85f5f621ed9674efc5665.zip gdb-0c315784bf5f5d972dd85f5f621ed9674efc5665.tar.gz gdb-0c315784bf5f5d972dd85f5f621ed9674efc5665.tar.bz2 |
Add opcode relaxation for rl78-elf
This patch adds initial in-gas opcode relaxation for the rl78
backend. Specifically, it checks for conditional branches that
are too far and replaces them with inverted branches around longer
fixed branches.
Diffstat (limited to 'gas/config/tc-rl78.h')
-rw-r--r-- | gas/config/tc-rl78.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-rl78.h b/gas/config/tc-rl78.h index e7fd782..2621ab64 100644 --- a/gas/config/tc-rl78.h +++ b/gas/config/tc-rl78.h @@ -49,6 +49,9 @@ extern int target_little_endian; #define md_end rl78_md_end extern void rl78_md_end (void); +#define md_relax_frag rl78_relax_frag +extern int rl78_relax_frag (segT, fragS *, long); + #define TC_FRAG_TYPE struct rl78_bytesT * #define TC_FRAG_INIT rl78_frag_init extern void rl78_frag_init (fragS *); |