PATCH: Remove groktypename_in_parm_context()

Ziemowit Laski zlaski@apple.com
Wed Sep 8 01:48:00 GMT 2004


With the "big patch" in mainline, this function is no longer needed.

[gcc/ChangeLog]
2004-09-07  Ziemowit Laski  <zlaski@apple.com>

         * c-decl.c (groktypename_in_parm_context): Remove function.
         * c-tree.h (groktypename_in_parm_context): Remove prototype.

Index: gcc/c-decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-decl.c,v
retrieving revision 1.573
diff -u -3 -p -r1.573 c-decl.c
--- gcc/c-decl.c        7 Sep 2004 10:18:57 -0000       1.573
+++ gcc/c-decl.c        8 Sep 2004 01:22:47 -0000
@@ -2887,18 +2887,6 @@ groktypename (tree type_name)
    return type_name;
  }

-/* Return a PARM_DECL node for a given pair of specs and declarator.  
*/
-
-tree
-groktypename_in_parm_context (tree type_name)
-{
-  if (TREE_CODE (type_name) != TREE_LIST)
-    return type_name;
-  return grokdeclarator (TREE_VALUE (type_name),
-                        TREE_PURPOSE (type_name),
-                        PARM, false, NULL);
-}
-
  /* Decode a declarator in an ordinary declaration or data definition.
     This is called as soon as the type information and variable name
     have been parsed, before parsing the initializer if any.
Index: gcc/c-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-tree.h,v
retrieving revision 1.175
diff -u -3 -p -r1.175 c-tree.h
--- gcc/c-tree.h        3 Sep 2004 02:07:18 -0000       1.175
+++ gcc/c-tree.h        8 Sep 2004 01:22:47 -0000
@@ -181,7 +181,6 @@ extern tree get_parm_info (bool);
  extern tree grokfield (tree, tree, tree);
  extern void split_specs_attrs (tree, tree *, tree *);
  extern tree groktypename (tree);
-extern tree groktypename_in_parm_context (tree);
  extern tree grokparm (tree);
  extern tree implicitly_declare (tree);
  extern void keep_next_level (void);

--------------------------------------------------------------
Ziemowit Laski                 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group        Cupertino, CA USA  95014-2083
Apple Computer, Inc.           +1.408.974.6229  Fax .5477



More information about the Gcc-patches mailing list