sim: h8300 special case test
[deliverable/binutils-gdb.git] / gas / config / bfin-lex.l
index 1fd759a86e0df14614f61e459850239fd5e9b631..eaaaf7427032165b0fdeb7dd4a140a6eed83c7ba 100644 (file)
@@ -1,7 +1,7 @@
 %option noyywrap
 
 /* bfin-lex.l  ADI Blackfin lexer
-   Copyright (C) 2005-2019 Free Software Foundation, Inc.
+   Copyright (C) 2005-2021 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
    02110-1301, USA.  */
 %{
-
-#include "as.h"
 #include "bfin-defs.h"
-#include "bfin-parse.h"
+#include "config/bfin-parse.h"
 
 static long parse_int (char **end);
 static int parse_halfreg (Register *r, int cl, char *hr);
@@ -32,6 +30,9 @@ int yylex (void);
 
 #define _REG yylval.reg
 
+/* Flex generates static functions "input" & "unput" which are not used.  */
+#define YY_NO_INPUT
+#define YY_NO_UNPUT
 
 %}
 
@@ -343,8 +344,8 @@ static long parse_int (char **end)
   char fmt = '\0';
   int not_done = 1;
   int shiftvalue = 0;
-  char * char_bag;
-  long value = 0;
+  const char *char_bag;
+  unsigned long value = 0;
   char *arg = *end;
 
   while (*arg && *arg == ' ')
This page took 0.024204 seconds and 4 git commands to generate.