]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gengtype-lex.l: Remove -Wtraditional cruft.
authorKelley Cook <kcook@gcc.gnu.org>
Tue, 7 Oct 2003 23:54:10 +0000 (23:54 +0000)
committerR. Kelley Cook <kcook@gcc.gnu.org>
Tue, 7 Oct 2003 23:54:10 +0000 (23:54 +0000)
2003-10-07  Kelley Cook  <kcook@gcc.gnu.org>

* gengtype-lex.l: Remove -Wtraditional cruft.
* Makefile.in (gengtype-lex.c): Likewise.

From-SVN: r72210

gcc/ChangeLog
gcc/Makefile.in
gcc/gengtype-lex.l

index eb5b68724ba5c857482a8d441def3aad1311e80f..9f5ab54015098fb14e81bc83ac49c71d627f7cd6 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-07  Kelley Cook  <kcook@gcc.gnu.org>
+
+       * gengtype-lex.l: Remove -Wtraditional cruft.
+       * Makefile.in (gengtype-lex.c): Likewise.
+
 2003-10-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
 
        * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
index e891ca5b896e4d028c5e2609922c137ebe16c88c..43bd0119e8af4d5af157a32b4be71b5eca52f7b7 100644 (file)
@@ -2203,11 +2203,8 @@ gengtype-yacc.o : $(parsedir)/gengtype-yacc.c gengtype.h $(BCONFIG_H) $(SYSTEM_H
        $(CC_FOR_BUILD) -c $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) $(INCLUDES) \
          $(parsedir)/gengtype-yacc.c $(OUTPUT_OPTION)
 
-# The sed command works around a bug in flex-2.5.4.
 $(parsedir)/gengtype-lex.c : $(srcdir)/gengtype-lex.l
-       $(FLEX) $(FLEXFLAGS) -t -o- $(srcdir)/gengtype-lex.l | \
-         sed 's/^\(char msg\[\];\)/yyconst \1/' > g-$$$$ ; \
-       if test $$? -eq 0 ; then \
+       if $(FLEX) $(FLEXFLAGS) -o g-$$$$ $(srcdir)/gengtype-lex.l; then \
          mv -f g-$$$$ $(parsedir)/gengtype-lex.c ; \
        else \
          rm -f g-$$$$ ; \
index 5af585e1d2c5a9a4e77e8604be9e830566e3194d..3b82ff5ec78ad5cda778ab6d2ca7ffbd315774e7 100644 (file)
@@ -30,9 +30,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include "gengtype.h"
 #include "gengtype-yacc.h"
 
-#undef YY_USE_PROTOS
-#define YY_DECL int yylex ()
-
 static void update_lineno (const char *l, size_t len);
 
 struct fileloc lexer_line;