aboutsummaryrefslogtreecommitdiff
path: root/gas/config/rl78-defs.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2014-03-20 17:50:49 -0400
committerDJ Delorie <dj@redhat.com>2014-03-20 17:56:01 -0400
commit0c315784bf5f5d972dd85f5f621ed9674efc5665 (patch)
tree4f0b5a434c7f3c6c0a123b1fd4e7ab98029ac214 /gas/config/rl78-defs.h
parentdeba7593bb5b6e5159f5f0ea0afecd69125057a7 (diff)
downloadfsf-binutils-gdb-0c315784bf5f5d972dd85f5f621ed9674efc5665.zip
fsf-binutils-gdb-0c315784bf5f5d972dd85f5f621ed9674efc5665.tar.gz
fsf-binutils-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/rl78-defs.h')
-rw-r--r--gas/config/rl78-defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/rl78-defs.h b/gas/config/rl78-defs.h
index e416706..0af8874 100644
--- a/gas/config/rl78-defs.h
+++ b/gas/config/rl78-defs.h
@@ -25,6 +25,9 @@
#define RL78REL_DATA 0
#define RL78REL_PCREL 1
+#define RL78_RELAX_NONE 0
+#define RL78_RELAX_BRANCH 1
+
extern int rl78_error (const char *);
extern void rl78_lex_init (char *, char *);
extern void rl78_prefix (int);