Commit f626e9fa by Anthony Green Committed by Alexandre Petit-Bianco

expr.c (java_lang_expand_expr): Switch to permanent obstack before building constant array decl.

Thu Jan  6 16:31:28 2000  Anthony Green  <green@cygnus.com>

        * expr.c (java_lang_expand_expr): Switch to permanent obstack
        before building constant array decl.

From-SVN: r31283
parent 8421850f
Thu Jan 6 16:31:28 2000 Anthony Green <green@cygnus.com>
* expr.c (java_lang_expand_expr): Switch to permanent obstack
before building constant array decl.
Thu Jan 6 00:54:10 2000 Alexandre Petit-Bianco <apbianco@cygnus.com> Thu Jan 6 00:54:10 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
* jcf-write.c (generate_byecode_conditional): Fixed indentation in * jcf-write.c (generate_byecode_conditional): Fixed indentation in
......
...@@ -1944,8 +1944,10 @@ java_lang_expand_expr (exp, target, tmode, modifier) ...@@ -1944,8 +1944,10 @@ java_lang_expand_expr (exp, target, tmode, modifier)
if (TREE_CONSTANT (init) if (TREE_CONSTANT (init)
&& ilength >= 10 && JPRIMITIVE_TYPE_P (element_type)) && ilength >= 10 && JPRIMITIVE_TYPE_P (element_type))
{ {
tree init_decl = build_decl (VAR_DECL, generate_name (), tree init_decl;
TREE_TYPE (init)); push_obstacks (&permanent_obstack, &permanent_obstack);
init_decl = build_decl (VAR_DECL, generate_name (),
TREE_TYPE (init));
pushdecl_top_level (init_decl); pushdecl_top_level (init_decl);
TREE_STATIC (init_decl) = 1; TREE_STATIC (init_decl) = 1;
DECL_INITIAL (init_decl) = init; DECL_INITIAL (init_decl) = init;
...@@ -1953,6 +1955,7 @@ java_lang_expand_expr (exp, target, tmode, modifier) ...@@ -1953,6 +1955,7 @@ java_lang_expand_expr (exp, target, tmode, modifier)
TREE_READONLY (init_decl) = 1; TREE_READONLY (init_decl) = 1;
TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (init_decl)) = 1; TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (init_decl)) = 1;
make_decl_rtl (init_decl, NULL, 1); make_decl_rtl (init_decl, NULL, 1);
pop_obstacks ();
init = init_decl; init = init_decl;
} }
expand_assignment (build (COMPONENT_REF, TREE_TYPE (data_fld), expand_assignment (build (COMPONENT_REF, TREE_TYPE (data_fld),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment