parse.y (resolve_package): Correctly set `*next' (was off by one.)
authorAlexandre Petit-Bianco <apbianco@cygnus.com>
Sat, 20 May 2000 22:38:05 +0000 (22:38 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sat, 20 May 2000 22:38:05 +0000 (22:38 +0000)
2000-05-01  Alexandre Petit-Bianco  <apbianco@cygnus.com>

* parse.y (resolve_package): Correctly set `*next' (was off by
one.)
(resolve_qualified_expression_name): Fixed comment.

From-SVN: r34060

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

index b4a1dacde46f7a82abe0f83ef4036d3a421f0c16..663e62168892ac7458538d08027fb7e59c2bd803 100644 (file)
@@ -1,3 +1,9 @@
+2000-05-01  Alexandre Petit-Bianco  <apbianco@cygnus.com>
+
+       * parse.y (resolve_package): Correctly set `*next' (was off by
+       one.)
+       (resolve_qualified_expression_name): Fixed comment.
+
 Thu Apr 27 17:25:33 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 
        * parse.y (block_end:): If the collected block doesn't feature a
index e4d044ba07bf52241a847ea83b29efe2a7a6a745..1b58acdee14379485bba2da31c07a155dc6a528a 100644 (file)
@@ -9311,7 +9311,10 @@ resolve_package (pkg, next)
        if ((type_name = resolve_no_layout (acc, NULL_TREE)))
          {
            type_name = acc;
-           *next = TREE_CHAIN (current);
+           /* resolve_package should be used in a loop, hence we
+              point at this one to naturally process the next one at
+              the next iteration. */
+           *next = current;
            break;
          }
       }
@@ -11525,7 +11528,7 @@ resolve_qualified_expression_name (wfl, found_decl, where_found, type_found)
            {
              tree list;
              *where_found = decl = resolve_no_layout (name, qual_wfl);
-             /* We wan't to be absolutely that the class is laid
+             /* We want to be absolutely sure that the class is laid
                  out. We're going to search something inside it. */
              *type_found = type = TREE_TYPE (decl);
              layout_class (type);
index 32b3756a00f5adf733dec087daa93f770332f27e..ca99a072baeb6f48084f207c8dca0d7731382019 100644 (file)
@@ -6679,7 +6679,10 @@ resolve_package (pkg, next)
        if ((type_name = resolve_no_layout (acc, NULL_TREE)))
          {
            type_name = acc;
-           *next = TREE_CHAIN (current);
+           /* resolve_package should be used in a loop, hence we
+              point at this one to naturally process the next one at
+              the next iteration. */
+           *next = current;
            break;
          }
       }
@@ -8893,7 +8896,7 @@ resolve_qualified_expression_name (wfl, found_decl, where_found, type_found)
            {
              tree list;
              *where_found = decl = resolve_no_layout (name, qual_wfl);
-             /* We wan't to be absolutely that the class is laid
+             /* We want to be absolutely sure that the class is laid
                  out. We're going to search something inside it. */
              *type_found = type = TREE_TYPE (decl);
              layout_class (type);