aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
authorJeff Sturm <jsturm@one-point.com>2003-11-25 17:32:54 +0000
committerJeff Sturm <jsturm@gcc.gnu.org>2003-11-25 17:32:54 +0000
commit75182467b0a33d419fd3affa859b0e48c10e012c (patch)
tree658c8162441bcbc5b5ac3ccf09f08949ff878437 /gcc/java/jcf-parse.c
parentfbe3f99721495a80dbee7c0a49009757c4f86a5b (diff)
downloadgcc-75182467b0a33d419fd3affa859b0e48c10e012c.zip
gcc-75182467b0a33d419fd3affa859b0e48c10e012c.tar.gz
gcc-75182467b0a33d419fd3affa859b0e48c10e012c.tar.bz2
re PR java/13183 ([unit-at-a-time] incorrect multidimensional array initializer with -O2)
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. From-SVN: r73926
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r--gcc/java/jcf-parse.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index 352a0be..71d447e 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -693,12 +693,6 @@ load_inner_classes (tree cur_class)
}
}
-void
-init_outgoing_cpool (void)
-{
- outgoing_cpool = ggc_alloc_cleared (sizeof (struct CPool));
-}
-
static void
parse_class_file (void)
{
@@ -710,7 +704,6 @@ parse_class_file (void)
input_filename = DECL_SOURCE_FILE (TYPE_NAME (current_class));
input_line = 0;
(*debug_hooks->start_source_file) (input_line, input_filename);
- init_outgoing_cpool ();
/* Currently we always have to emit calls to _Jv_InitClass when
compiling from class files. */