diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-10-11 08:36:30 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-10-11 08:36:30 +0000 |
commit | 5664043466b5a1a79232f5a3ee6339e638384720 (patch) | |
tree | e3acf44f6c7cecf6a207017dbbef46520263cafe /gas/config/tc-bfin.c | |
parent | 71ef6f79bc8926dfd6e1b49456a67795af9e2069 (diff) | |
download | gdb-5664043466b5a1a79232f5a3ee6339e638384720.zip gdb-5664043466b5a1a79232f5a3ee6339e638384720.tar.gz gdb-5664043466b5a1a79232f5a3ee6339e638384720.tar.bz2 |
gas: blackfin: support numeric local labels with LOOP_BEGIN/LOOP_END pseudo insns
The current LOOP_BEGIN/LOOP_END pseudo insns hit parser errors when trying
to use numeric local labels. So add support for them.
Signed-off-by: David Gibson <david.gibson@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gas/config/tc-bfin.c')
-rw-r--r-- | gas/config/tc-bfin.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c index e854dce..3efc4b6 100644 --- a/gas/config/tc-bfin.c +++ b/gas/config/tc-bfin.c @@ -1905,6 +1905,15 @@ bfin_gen_loop (Expr_Node *exp, REG_T reg, int rop, REG_T preg) } void +bfin_loop_attempt_create_label (Expr_Node *exp, int is_begin) +{ + char *name; + name = fb_label_name (exp->value.i_value, is_begin); + exp->value.s_value = xstrdup (name); + exp->type = Expr_Node_Reloc; +} + +void bfin_loop_beginend (Expr_Node *exp, int begin) { const char *loopsym; |