gengtype-lex.l: Enable noinput flex option.
authorBen Elliston <bje@au.ibm.com>
Sat, 21 Nov 2009 10:24:25 +0000 (10:24 +0000)
committerBen Elliston <bje@gcc.gnu.org>
Sat, 21 Nov 2009 10:24:25 +0000 (21:24 +1100)
* gengtype-lex.l: Enable noinput flex option.
(YY_NO_INPUT): Remove define.

From-SVN: r154406

gcc/ChangeLog
gcc/gengtype-lex.l

index da2c7a6..fee1494 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-21  Ben Elliston  <bje@au.ibm.com>
+
+       * gengtype-lex.l: Enable noinput flex option.
+       (YY_NO_INPUT): Remove define.
+
 2009-11-21  Alexandre Oliva  <aoliva@redhat.com>
 
        * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
index da118d0..297ebf8 100644 (file)
@@ -19,6 +19,8 @@ You should have received a copy of the GNU General Public License
 along with GCC; see the file COPYING3.  If not see
 <http://www.gnu.org/licenses/>.  */
 
+%option noinput
+
 %{
 #include "bconfig.h"
 #include "system.h"
@@ -28,7 +30,6 @@ along with GCC; see the file COPYING3.  If not see
 
 #include "gengtype.h"
 
-#define YY_NO_INPUT
 #define YY_DECL int yylex (const char **yylval)
 #define yyterminate() return EOF_TOKEN