Commit 64ea4a5e by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

expr.c (java_lang_expand_expr): Added Anthony's Thu Jan 6 2000 patch missing hunk.

Thu Mar 30 15:26:56 2000  Alexandre Petit-Bianco  <apbianco@dcygnus.com>

	* expr.c (java_lang_expand_expr): Added Anthony's Thu Jan 6 2000
	patch missing hunk. Fixed indentation.

From-SVN: r32839
parent 694f020b
Thu Mar 30 15:26:56 2000 Alexandre Petit-Bianco <apbianco@dcygnus.com>
* expr.c (java_lang_expand_expr): Added Anthony's Thu Jan 6 2000
patch missing hunk. Fixed indentation.
2000-03-30 Tom Tromey <tromey@cygnus.com> 2000-03-30 Tom Tromey <tromey@cygnus.com>
* gjavah.c (D_NAN_MASK): Only define as word-reversed when * gjavah.c (D_NAN_MASK): Only define as word-reversed when
......
...@@ -2022,8 +2022,10 @@ java_lang_expand_expr (exp, target, tmode, modifier) ...@@ -2022,8 +2022,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;
...@@ -2031,12 +2033,12 @@ java_lang_expand_expr (exp, target, tmode, modifier) ...@@ -2031,12 +2033,12 @@ 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),
build1 (INDIRECT_REF, array_type, array_decl), build1 (INDIRECT_REF, array_type,
data_fld), array_decl), data_fld), init, 0, 0);
init, 0, 0);
return tmp; return tmp;
} }
case BLOCK: case BLOCK:
......
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