aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorBernhard Rosenkranzer <bero@lindev.ch>2017-01-18 13:38:27 +0000
committerNick Clifton <nickc@redhat.com>2017-01-18 13:38:27 +0000
commit2cedb9ebf8254a23d1fbd4f76a85e5f08dc3aaf5 (patch)
tree63cf2c4fc3f2470bedfcb9b671b497f45a8e7416 /gas
parent1ec4b9f28bab4400c882a0f3e966eb12b73cee1a (diff)
downloadbinutils-2cedb9ebf8254a23d1fbd4f76a85e5f08dc3aaf5.zip
binutils-2cedb9ebf8254a23d1fbd4f76a85e5f08dc3aaf5.tar.gz
binutils-2cedb9ebf8254a23d1fbd4f76a85e5f08dc3aaf5.tar.bz2
Add support for processing lex source files with flex v 2.6.3
PR 21059 binutils* arlex.l: Support processing with flex 2.6.3. * deflex.l: Likewise. gas * config/bfin-lex.l: Support processing with flex 2.6.3. * itbl-lex.l: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/bfin-lex.l11
-rw-r--r--gas/itbl-lex.l10
3 files changed, 10 insertions, 17 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b189e36..9569b4b 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
+
+ PR 21059
+ * config/bfin-lex.l: Support processing with flex 2.6.3.
+ * itbl-lex.l: Likewise.
+
2017-01-18 Nathan Sidwell <nathan@acm.org>
* as.h (gas_assert): Use abort.
diff --git a/gas/config/bfin-lex.l b/gas/config/bfin-lex.l
index 03a4ce8..f270a4b 100644
--- a/gas/config/bfin-lex.l
+++ b/gas/config/bfin-lex.l
@@ -1,3 +1,5 @@
+%option noyywrap
+
/* bfin-lex.l ADI Blackfin lexer
Copyright (C) 2005-2017 Free Software Foundation, Inc.
@@ -545,12 +547,3 @@ set_start_state (void)
{
BEGIN KEYWORD;
}
-
-
-#ifndef yywrap
-int
-yywrap ()
-{
- return 1;
-}
-#endif
diff --git a/gas/itbl-lex.l b/gas/itbl-lex.l
index d9e243c..4a7c512 100644
--- a/gas/itbl-lex.l
+++ b/gas/itbl-lex.l
@@ -1,3 +1,5 @@
+%option noyywrap
+
/* itbl-lex.l
Copyright (C) 1997-2017 Free Software Foundation, Inc.
@@ -102,11 +104,3 @@ HEX [0-9A-Fa-f]
return yytext[0];
}
%%
-
-#ifndef yywrap
-int
-yywrap ()
- {
- return 1;
- }
-#endif