From: Mike Frysinger Date: Wed, 22 Sep 2010 21:08:31 +0000 (+0000) Subject: gas: blackfin: handle multibyte symbols X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=efda024297b5add28bbcb35d3a8d9261d1fdac55;p=binutils-gdb.git 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 Signed-off-by: Mike Frysinger --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 3269418d665..dd929b4cac9 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2010-09-22 Robin Getz + + * config/bfin-lex.l: Accept multibyte chars in symbol names. + 2010-09-22 Robin Getz * config/bfin-defs.h (statusflags): Add AC0_COPY, V_COPY, and RND_MOD. diff --git a/gas/config/bfin-lex.l b/gas/config/bfin-lex.l index bc7957ad837..bdd02f5bcff 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;