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>
This commit is contained in:
Mike Frysinger
2010-09-22 21:08:31 +00:00
parent 22215ae09b
commit efda024297
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-09-22 Robin Getz <robin.getz@analog.com>
* config/bfin-lex.l: Accept multibyte chars in symbol names.
2010-09-22 Robin Getz <robin.getz@analog.com>
* config/bfin-defs.h (statusflags): Add AC0_COPY, V_COPY, and RND_MOD.

View File

@ -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;