aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorDilan Palauzov <dilyan.palauzov@aegee.org>2017-01-04 16:05:22 +0000
committerNick Clifton <nickc@redhat.com>2017-01-04 16:05:22 +0000
commitb055631694967585d0c898ac493e1faa3d5e8ee6 (patch)
tree31ef656b0ca539f6889614381852ecc7328b98bb /binutils
parent8cf50cb070642d73acc537010d71c912f921861c (diff)
downloadgdb-b055631694967585d0c898ac493e1faa3d5e8ee6.zip
gdb-b055631694967585d0c898ac493e1faa3d5e8ee6.tar.gz
gdb-b055631694967585d0c898ac493e1faa3d5e8ee6.tar.bz2
Use noyywrap option in lex files.
ld PR 20958 * ldlex.l (option): Add noyywrap (yywrap): Delete. * ldlex.h (yywrap): Delete prototype. binutils PR 20958 * syslex.l (option): Add noyywrap (yywrap): Delete.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/syslex.l6
2 files changed, 7 insertions, 5 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 6a61d61..d504ff1 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
+
+ PR 20958
+ * syslex.l (option): Add noyywrap
+ (yywrap): Delete.
+
2017-01-02 Alan Modra <amodra@gmail.com>
Update year range in copyright notice of all files.
diff --git a/binutils/syslex.l b/binutils/syslex.l
index 86cb17d..7fcc714 100644
--- a/binutils/syslex.l
+++ b/binutils/syslex.l
@@ -1,4 +1,4 @@
-%option noinput nounput
+%option noinput nounput noyywrap
%{
/* Copyright (C) 2001-2017 Free Software Foundation, Inc.
@@ -36,10 +36,6 @@
#define YY_NO_UNPUT
#endif
-#ifndef yywrap
-static int yywrap (void) { return 1; }
-#endif
-
extern int yylex (void);
%}
%%