diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2004-06-24 15:56:54 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2004-06-24 16:56:54 +0100 |
commit | d01a8ee025fac8ecd9619c3a868d1979d64bc7b6 (patch) | |
tree | c91b027705df7a440cc6a4f329285bf9b53500b5 /gcc/java | |
parent | 5a1f395394d8ac58ed5ade2185f3267b16493791 (diff) | |
download | gcc-d01a8ee025fac8ecd9619c3a868d1979d64bc7b6.zip gcc-d01a8ee025fac8ecd9619c3a868d1979d64bc7b6.tar.gz gcc-d01a8ee025fac8ecd9619c3a868d1979d64bc7b6.tar.bz2 |
parse.y (set_nested_class_simple_name_value): Removed.
* parse.y (set_nested_class_simple_name_value): Removed.
(java_complete_expand_class): Remove calls to
set_nested_class_simple_name_value.
From-SVN: r83596
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/java/parse.y | 17 |
2 files changed, 6 insertions, 17 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 8efebbe..63a23eb 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,9 @@ +2004-06-23 Bryce McKinlay <mckinlay@redhat.com> + + * parse.y (set_nested_class_simple_name_value): Removed. + (java_complete_expand_class): Remove calls to + set_nested_class_simple_name_value. + 2004-06-22 Andrew Haley <aph@redhat.com> Ranjit Mathew <rmathew@hotmail.com> diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 90e18c9..8cd4f00 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -296,7 +296,6 @@ static int pop_current_osb (struct parser_ctxt *); static tree maybe_make_nested_class_name (tree); static int make_nested_class_name (tree); -static void set_nested_class_simple_name_value (tree, int); static void link_nested_class_to_enclosing (void); static tree resolve_inner_class (htab_t, tree, tree *, tree *, tree); static tree find_as_inner_class (tree, tree, tree); @@ -3694,19 +3693,6 @@ find_as_inner_class_do (tree qual, tree enclosing) return (!qual && enclosing ? enclosing : NULL_TREE); } -/* Reach all inner classes and tie their unqualified name to a - DECL. */ - -static void -set_nested_class_simple_name_value (tree outer, int set) -{ - tree l; - - for (l = DECL_INNER_CLASS_LIST (outer); l; l = TREE_CHAIN (l)) - IDENTIFIER_GLOBAL_VALUE (TREE_VALUE (l)) = (set ? - TREE_PURPOSE (l) : NULL_TREE); -} - static void link_nested_class_to_enclosing (void) { @@ -7712,8 +7698,6 @@ java_complete_expand_class (tree outer) { tree inner_list; - set_nested_class_simple_name_value (outer, 1); /* Set */ - /* We need to go after all inner classes and start expanding them, starting with most nested ones. We have to do that because nested classes might add functions to outer classes */ @@ -7723,7 +7707,6 @@ java_complete_expand_class (tree outer) java_complete_expand_class (TREE_PURPOSE (inner_list)); java_complete_expand_methods (outer); - set_nested_class_simple_name_value (outer, 0); /* Reset */ } /* Expand methods registered in CLASS_DECL. The general idea is that |