diff options
| author | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-30 23:41:57 +0000 |
|---|---|---|
| committer | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-03-30 23:41:57 +0000 |
| commit | b099d3c55a0c5e952e3c025cf8fd9739cbbb1574 (patch) | |
| tree | f11cb043f451d7a5773d2a5b29898309dda372d7 /gcc/java/expr.c | |
| parent | f025850ad999474ed5b515e435dcfe0f3610c7f9 (diff) | |
| download | ppe42-gcc-b099d3c55a0c5e952e3c025cf8fd9739cbbb1574.tar.gz ppe42-gcc-b099d3c55a0c5e952e3c025cf8fd9739cbbb1574.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32839 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/expr.c')
| -rw-r--r-- | gcc/java/expr.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 776c6f3db73..c5fe6690a2c 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -2022,8 +2022,10 @@ java_lang_expand_expr (exp, target, tmode, modifier) if (TREE_CONSTANT (init) && ilength >= 10 && JPRIMITIVE_TYPE_P (element_type)) { - tree init_decl = build_decl (VAR_DECL, generate_name (), - TREE_TYPE (init)); + tree init_decl; + push_obstacks (&permanent_obstack, &permanent_obstack); + init_decl = build_decl (VAR_DECL, generate_name (), + TREE_TYPE (init)); pushdecl_top_level (init_decl); TREE_STATIC (init_decl) = 1; DECL_INITIAL (init_decl) = init; @@ -2031,12 +2033,12 @@ java_lang_expand_expr (exp, target, tmode, modifier) TREE_READONLY (init_decl) = 1; TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (init_decl)) = 1; make_decl_rtl (init_decl, NULL, 1); + pop_obstacks (); init = init_decl; } expand_assignment (build (COMPONENT_REF, TREE_TYPE (data_fld), - build1 (INDIRECT_REF, array_type, array_decl), - data_fld), - init, 0, 0); + build1 (INDIRECT_REF, array_type, + array_decl), data_fld), init, 0, 0); return tmp; } case BLOCK: |

