aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/decl.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/decl.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/decl.c')
-rw-r--r--gcc/java/decl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index b8f09e1..014fcc7 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -1860,6 +1860,7 @@ java_expand_body (tree fndecl)
current_function_decl = fndecl;
input_location = DECL_SOURCE_LOCATION (fndecl);
+ current_class = DECL_CONTEXT (fndecl);
timevar_push (TV_EXPAND);