From b055631694967585d0c898ac493e1faa3d5e8ee6 Mon Sep 17 00:00:00 2001 From: Dilan Palauzov Date: Wed, 4 Jan 2017 16:05:22 +0000 Subject: 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. --- ld/ldlex.l | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ld/ldlex.l') diff --git a/ld/ldlex.l b/ld/ldlex.l index bddaaf8..fa9b924 100644 --- a/ld/ldlex.l +++ b/ld/ldlex.l @@ -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 -- cgit v1.1