projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb/jit: return bool in jit_breakpoint_re_set_internal and jit_read_descriptor
[deliverable/binutils-gdb.git]
/
gas
/
config
/
bfin-lex.l
diff --git
a/gas/config/bfin-lex.l
b/gas/config/bfin-lex.l
index bc7957ad83705d3341a6acbf8cf97edb2363e684..6837f0d8c8ead0e80d106e08dd2456fa5671c19b 100644
(file)
--- a/
gas/config/bfin-lex.l
+++ b/
gas/config/bfin-lex.l
@@
-1,6
+1,7
@@
+%option noyywrap
+
/* bfin-lex.l ADI Blackfin lexer
/* bfin-lex.l ADI Blackfin lexer
- Copyright 2005, 2006, 2007, 2008, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 2005-2020 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
This file is part of GAS, the GNU Assembler.
@@
-39,6
+40,7
@@
int yylex (void);
and <INITIAL> would match some keyword rules only with
initial. */
%s KEYWORD
and <INITIAL> would match some keyword rules only with
initial. */
%s KEYWORD
+%s FLAGS
%%
[sS][fF][tT][rR][eE][sS][eE][tT] _REG.regno = REG_sftreset; return REG;
%%
[sS][fF][tT][rR][eE][sS][eE][tT] _REG.regno = REG_sftreset; return REG;
@@
-47,8
+49,8
@@
int yylex (void);
[hH][wW][eE][rR][rR][cC][aA][uU][sS][eE] _REG.regno = REG_hwerrcause; return REG;
[eE][xX][cC][aA][uU][sS][eE] _REG.regno = REG_excause; return REG;
[eE][mM][uU][cC][aA][uU][sS][eE] _REG.regno = REG_emucause; return REG;
[hH][wW][eE][rR][rR][cC][aA][uU][sS][eE] _REG.regno = REG_hwerrcause; return REG;
[eE][xX][cC][aA][uU][sS][eE] _REG.regno = REG_excause; return REG;
[eE][mM][uU][cC][aA][uU][sS][eE] _REG.regno = REG_emucause; return REG;
-
[zZ]
return Z;
-
[xX]
return X;
+
<FLAGS>[zZ]
return Z;
+
<FLAGS>[xX]
return X;
[wW]32 yylval.value = M_W32; return MMOD;
[wW] return W;
[vV][iI][tT]_[mM][aA][xX] return VIT_MAX;
[wW]32 yylval.value = M_W32; return MMOD;
[wW] return W;
[vV][iI][tT]_[mM][aA][xX] return VIT_MAX;
@@
-58,8
+60,8
@@
int yylex (void);
[tT][hH] return TH;
[tT][fF][uU] yylval.value = M_TFU; return MMOD;
[tT][eE][sS][tT][sS][eE][tT] return TESTSET;
[tT][hH] return TH;
[tT][fF][uU] yylval.value = M_TFU; return MMOD;
[tT][eE][sS][tT][sS][eE][tT] return TESTSET;
-
[tT]
yylval.value = M_T; return MMOD;
-
[sS]
return S;
+
<FLAGS>[tT]
yylval.value = M_T; return MMOD;
+
<FLAGS>[sS]
return S;
[sS][yY][sS][cC][fF][gG] _REG.regno = REG_SYSCFG; return REG;
[sS][tT][iI] return STI;
[sS][sS][yY][nN][cC] return SSYNC;
[sS][yY][sS][cC][fF][gG] _REG.regno = REG_SYSCFG; return REG;
[sS][tT][iI] return STI;
[sS][sS][yY][nN][cC] return SSYNC;
@@
-122,7
+124,7
@@
int yylex (void);
[mM][0-3]"."[lLhH] return parse_halfreg (&yylval.reg, T_REG_M, yytext);
[mM][0-3] return parse_reg (&yylval.reg, T_REG_M, yytext);
[mM][0-3]"."[lLhH] return parse_halfreg (&yylval.reg, T_REG_M, yytext);
[mM][0-3] return parse_reg (&yylval.reg, T_REG_M, yytext);
-
[mM]
return M;
+
<FLAGS>[mM]
return M;
[lL][tT] return LT;
[lL][sS][hH][iI][fF][tT] return LSHIFT;
[lL][sS][eE][tT][uU][pP] return LSETUP;
[lL][tT] return LT;
[lL][sS][hH][iI][fF][tT] return LSHIFT;
[lL][sS][eE][tT][uU][pP] return LSETUP;
@@
-189,7
+191,6
@@
int yylex (void);
[bB][yY][tT][eE][oO][pP]16[mM] return BYTEOP16M;
[bB][yY][tT][eE][oO][pP]16[pP] return BYTEOP16P;
[bB][yY][tT][eE][oO][pP]3[pP] return BYTEOP3P;
[bB][yY][tT][eE][oO][pP]16[mM] return BYTEOP16M;
[bB][yY][tT][eE][oO][pP]16[pP] return BYTEOP16P;
[bB][yY][tT][eE][oO][pP]3[pP] return BYTEOP3P;
-[bB][yY][tT][eE][oO][pP]2[mM] return BYTEOP2M;
[bB][yY][tT][eE][oO][pP]2[pP] return BYTEOP2P;
[bB][yY][tT][eE][oO][pP]1[pP] return BYTEOP1P;
[bB][yY] return BY;
[bB][yY][tT][eE][oO][pP]2[pP] return BYTEOP2P;
[bB][yY][tT][eE][oO][pP]1[pP] return BYTEOP1P;
[bB][yY] return BY;
@@
-263,8
+264,8
@@
int yylex (void);
"<<=" return _LESS_LESS_ASSIGN;
"<<" return LESS_LESS;
"<" return LESS_THAN;
"<<=" return _LESS_LESS_ASSIGN;
"<<" return LESS_LESS;
"<" return LESS_THAN;
-"(" return LPAREN;
-")" return RPAREN;
+"("
BEGIN(FLAGS);
return LPAREN;
+")"
BEGIN(INITIAL);
return RPAREN;
":" return COLON;
"/" return SLASH;
"-=" return _MINUS_ASSIGN;
":" return COLON;
"/" return SLASH;
"-=" return _MINUS_ASSIGN;
@@
-299,7
+300,7
@@
int yylex (void);
yylval.value = parse_int (&yytext);
return NUMBER;
}
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;
yylval.symbol = symbol_find_or_make (yytext);
symbol_mark_used (yylval.symbol);
return SYMBOL;
@@
-363,7
+364,7
@@
static long parse_int (char **end)
fmt = 'd';
break;
fmt = 'd';
break;
- case '0': /* Accept different formated integers hex octal and binary. */
+ case '0': /* Accept different format
t
ed integers hex octal and binary. */
{
char c = *++arg;
arg++;
{
char c = *++arg;
arg++;
@@
-546,12
+547,3
@@
set_start_state (void)
{
BEGIN KEYWORD;
}
{
BEGIN KEYWORD;
}
-
-
-#ifndef yywrap
-int
-yywrap ()
-{
- return 1;
-}
-#endif
This page took
0.02434 seconds
and
4
git commands to generate.