OSDN Git Service

* gengtype-lex.l: Remove rules for parsing pointer-to-function
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Mar 2007 20:46:29 +0000 (20:46 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Mar 2007 20:46:29 +0000 (20:46 +0000)
typedefs that use the old PARAMS macro.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123227 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gengtype-lex.l

index 7375955..1eaba11 100644 (file)
@@ -1,5 +1,8 @@
 2007-03-26  Zack Weinberg  <zackw@panix.com>
 
+       * gengtype-lex.l: Remove rules for parsing pointer-to-function
+       typedefs that use the old PARAMS macro.
+
        * gengtype-lex.l: Remove all rules and states relating to yacc
        input files.
        * gengtype-yacc.y: Similarly.
index 27802e6..8ae86bc 100644 (file)
@@ -129,23 +129,6 @@ ITYPE      {IWORD}({WS}{IWORD})*
   update_lineno (yytext, yyleng);
 }
 
-[^[:alnum:]_]typedef{WS}{ID}{WS}{ID}{WS}PARAMS {
-  char *namestart;
-  size_t namelen;
-  struct type *t;
-
-  for (namestart = yytext + yyleng - 7; ISSPACE (*namestart); namestart--)
-    ;
-  for (namelen = 1; !ISSPACE (namestart[-namelen]); namelen++)
-    ;
-  namestart -= namelen - 1;
-
-  t = create_scalar_type ("function type", sizeof ("function type")-1);
-  do_typedef ((const char *) xmemdup (namestart, namelen, namelen+1), t,
-             &lexer_line);
-  update_lineno (yytext, yyleng);
-}
-
 [^[:alnum:]_]typedef{WS}{ID}{WS}{ID}{WS}"(" {
   char *namestart;
   size_t namelen;
@@ -163,23 +146,6 @@ ITYPE      {IWORD}({WS}{IWORD})*
   update_lineno (yytext, yyleng);
 }
 
-[^[:alnum:]_]typedef{WS}{ID}{WS}?"*"?{WS}?"("{WS}?"*"{WS}?{ID}{WS}?")"{WS}?PARAMS {
-  char *namestart;
-  size_t namelen;
-  struct type *t;
-
-  for (namestart = yytext + yyleng - 7; !ISIDNUM (*namestart); namestart--)
-    ;
-  for (namelen = 1; ISIDNUM (namestart[-namelen]); namelen++)
-    ;
-  namestart -= namelen - 1;
-
-  t = create_scalar_type ("function type", sizeof ("function type")-1);
-  do_typedef ((const char *) xmemdup (namestart, namelen, namelen+1), t,
-             &lexer_line);
-  update_lineno (yytext, yyleng);
-}
-
 [^[:alnum:]_]typedef{WS}{ID}{WS}?"*"?{WS}?"("{WS}?"*"{WS}?{ID}{WS}?")"{WS}?"(" {
   char *namestart;
   size_t namelen;