This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[PATCH] java/13183: Use correct class context for constant pool
- From: Andrew Haley <aph at redhat dot com>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Tue, 25 Nov 2003 15:52:50 +0000
- Subject: [PATCH] java/13183: Use correct class context for constant pool
- References: <Pine.LNX.4.44.0311251024520.14521-100000@ops2.one-point.com>
Jeff Sturm writes:
>
> 2003-11-25 Jeff Sturm <jsturm@one-point.com>
>
> Fix PR java/13183.
> * constants.c (cpool_for_class): New function.
> (outgoing_cpool): Remove global variable.
> (alloc_name_constant): Use cpool_for_class.
> (build_constants_constructor): Likewise.
> * decl.c (java_expand_body): Set current_class.
> * java-tree.h (outgoing_cpool) Remove declaration.
> (init_outgoing_cpool): Likewise.
> * jcf-parse.c (init_outgoing_cpool): Remove function.
> (parse_class_file): Don't call init_outgoing_cpool.
> * parse.y (java_complete_expand_methods): Don't call
> init_outgoing_cpool. Don't save outgoing_cpool.
> (java_expand_classes): Don't restore outgoing_cpool.
> (java_finish_classes): Likewise.
OK, this looks much better. Thanks.
Andrew.