diff options
author | Dilan Palauzov <dilyan.palauzov@aegee.org> | 2017-01-04 16:05:22 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-01-04 16:05:22 +0000 |
commit | b055631694967585d0c898ac493e1faa3d5e8ee6 (patch) | |
tree | 31ef656b0ca539f6889614381852ecc7328b98bb /ld | |
parent | 8cf50cb070642d73acc537010d71c912f921861c (diff) | |
download | gdb-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 'ld')
-rw-r--r-- | ld/ChangeLog | 7 | ||||
-rw-r--r-- | ld/ldlex.h | 3 | ||||
-rw-r--r-- | ld/ldlex.l | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index b855c74..1ea2cb0 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org> + + PR 20958 + * ldlex.l (option): Add noyywrap + (yywrap): Delete. + * ldlex.h (yywrap): Delete prototype. + 2017-01-04 Alan Modra <amodra@gmail.com> * testsuite/ld-elf/audit.exp: Check for shared lib support. @@ -182,9 +182,6 @@ extern const char* ldlex_filename (void); /* In lexsup.c. */ extern int lex_input (void); extern void lex_unput (int); -#ifndef yywrap -extern int yywrap (void); -#endif extern void parse_args (unsigned, char **); #endif @@ -1,4 +1,4 @@ -%option nounput +%option nounput noyywrap %{ @@ -86,10 +86,6 @@ static void lex_warn_invalid (char *where, char *what); */ #define RTOKEN(x) { yylval.token = x; return x; } -/* Some versions of flex want this. */ -#ifndef yywrap -int yywrap (void) { return 1; } -#endif %} %a 4000 |