[PATCH] gas: blackfin: handle multibyte symbols
Mike Frysinger
vapier@gentoo.org
Tue Sep 21 07:09:00 GMT 2010
More information about the Binutils mailing list
Tue Sep 21 07:09:00 GMT 2010
- Previous message (by thread): [PATCH] opcodes/gas: blackfin: handle more ASTAT flags
- Next message (by thread): [PATCH] gas: blackfin: handle multibyte symbols
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: Robin Getz <robin.getz@analog.com> 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> 2010-09-21 Robin Getz <robin.getz@analog.com> * config/bfin-lex.l: Accept multibyte chars in symbol names. --- gas/config/bfin-lex.l | 2 +- 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; -- 1.7.2
- Previous message (by thread): [PATCH] opcodes/gas: blackfin: handle more ASTAT flags
- Next message (by thread): [PATCH] gas: blackfin: handle multibyte symbols
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list