java-tree.h (TYPE_IMPORT_LIST): New macro.
authorAlexandre Petit-Bianco <apbianco@redhat.com>
Fri, 14 Sep 2001 22:58:37 +0000 (15:58 -0700)
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>
Fri, 14 Sep 2001 22:58:37 +0000 (15:58 -0700)
commit653d5d95bcf74064e9cc80423eceebdc3767e9f4
treed7b09b10f0dd78bec10dd581bb4270ea3e34a66c
parent846f046709389edeb34698ac0198b58c8f01a6de
java-tree.h (TYPE_IMPORT_LIST): New macro.

2001-09-13  Alexandre Petit-Bianco  <apbianco@redhat.com>

* java-tree.h (TYPE_IMPORT_LIST): New macro.
(TYPE_IMPORT_DEMAND_LIST): Likewise.
(struct lang_type): New fields import_list and import_demand_list.
* parse.y (java_complete_class): Initialize TYPE_IMPORT_LIST and
TYPE_IMPORT_DEMAND_LIST with ctxp counterparts.
(do_resolve_class): New local saved_enclosing_type, initialized,
passed as parameter to find_in_imports and find_in_imports_on_demand.
(find_in_imports): Added paramater enclosing_type, use its
TYPE_IMPORT_LIST when applicable.
(find_in_imports_on_demand): Added parameter enclosing_type, use
its TYPE_IMPORT_DEMAND_LIST when applicable. Reorganized locals
declaration and initialization.
(fold_constant_for_init): Switch/restore current_class to the
appropriate context.

( http://gcc.gnu.org/ml/gcc-patches/2001-09/msg00563.html )

From-SVN: r45619
gcc/java/ChangeLog
gcc/java/java-tree.h
gcc/java/parse.y