gas: blackfin: handle multibyte symbols
authorMike Frysinger <vapier@gentoo.org>
Wed, 22 Sep 2010 21:08:31 +0000 (21:08 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 22 Sep 2010 21:08:31 +0000 (21:08 +0000)
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>
gas/ChangeLog
gas/config/bfin-lex.l

index 3269418d665c76ad098fb3f75e4a72be4790c7f5..dd929b4cac9be13ca4df1870b8b74c11c5284d71 100644 (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.
index bc7957ad83705d3341a6acbf8cf97edb2363e684..bdd02f5bcffc27fcd16302f2cc468286ff82dd43 100644 (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;
This page took 0.027062 seconds and 4 git commands to generate.