aboutsummaryrefslogtreecommitdiff
path: root/gas/config/bfin-lex.l
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-09-22 21:08:31 +0000
committerMike Frysinger <vapier@gentoo.org>2010-09-22 21:08:31 +0000
commitefda024297b5add28bbcb35d3a8d9261d1fdac55 (patch)
tree82cfde2e8d252a8db1964ff86818ac702ede9403 /gas/config/bfin-lex.l
parent22215ae09b35cffb17d23cb159e603227caa9957 (diff)
downloadgdb-efda024297b5add28bbcb35d3a8d9261d1fdac55.zip
gdb-efda024297b5add28bbcb35d3a8d9261d1fdac55.tar.gz
gdb-efda024297b5add28bbcb35d3a8d9261d1fdac55.tar.bz2
gas: blackfin: handle multibyte symbols
Accept any 8bit char with the high bit set so as to support multibyte characters. Also use the locale safe regular expressions to match chars/digits. This brings the Blackfin assembler inline with the behavior of other assemblers. Signed-off-by: Robin Getz <robin.getz@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'gas/config/bfin-lex.l')
-rw-r--r--gas/config/bfin-lex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/bfin-lex.l b/gas/config/bfin-lex.l
index bc7957a..bdd02f5 100644
--- a/gas/config/bfin-lex.l
+++ b/gas/config/bfin-lex.l
@@ -299,7 +299,7 @@ int yylex (void);
yylval.value = parse_int (&yytext);
return NUMBER;
}
-[A-Za-z_$.][A-Za-z0-9_$.]* {
+[[:alpha:]\x80-\xff_$.][[:alnum:]\x80-\xff_$.]* {
yylval.symbol = symbol_find_or_make (yytext);
symbol_mark_used (yylval.symbol);
return SYMBOL;