parse.y (resolve_package): Initialize "decl".
authorBryce McKinlay <bryce@waitaki.otago.ac.nz>
Thu, 28 Mar 2002 07:41:40 +0000 (07:41 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Thu, 28 Mar 2002 07:41:40 +0000 (07:41 +0000)
2002-03-28  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>

* parse.y (resolve_package): Initialize "decl".
(lookup_package_type): Remove unused function.

From-SVN: r51500

gcc/java/ChangeLog
gcc/java/parse.y

index 20c11cc1adf1a127d8a56c3938beef5a63d4c574..b284d0c8a5e5758fb8cb947fda87d1dea181bfa4 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-28  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
+
+       * parse.y (resolve_package): Initialize "decl".
+       (lookup_package_type): Remove unused function.
+
 2002-03-28  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
 
        Fix for PR java/5993:
index 3625dbabecdac9d6c35f176a16837ddf0bc38263..5bfcbd0509b31344352c35e7ceae8f8e226bfadf 100644 (file)
@@ -7034,7 +7034,8 @@ static tree
 resolve_package (pkg, next, type_name)
      tree pkg, *next, *type_name;
 {
-  tree current, decl;
+  tree current;
+  tree decl = NULL_TREE;
   *type_name = NULL_TREE;
 
   /* The trick is to determine when the package name stops and were
@@ -7066,19 +7067,6 @@ resolve_package (pkg, next, type_name)
   return decl;
 }
 
-static tree
-lookup_package_type (name, from)
-     const char *name;
-     int from;
-{
-  char subname [128];
-  const char *sub = &name[from+1];
-  while (*sub != '.' && *sub)
-    sub++;
-  strncpy (subname, name, sub-name);
-  subname [sub-name] = '\0';
-  return get_identifier (subname);
-}
 
 /* Check accessibility of inner classes according to member access rules. 
    DECL is the inner class, ENCLOSING_DECL is the class from which the