diff options
author | Per Bothner <bothner@gcc.gnu.org> | 1999-01-09 04:49:05 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 1999-01-09 04:49:05 -0800 |
commit | ef0fec0643369012d898a64bcd349228e0a612f3 (patch) | |
tree | 39755b311b1bc4c8bbb043fa7447bbce9a0c374a /gcc/java/expr.c | |
parent | 5bba48071ea0a7bc5f7fc9c9f6aaa6ca9dd24795 (diff) | |
download | gcc-ef0fec0643369012d898a64bcd349228e0a612f3.zip gcc-ef0fec0643369012d898a64bcd349228e0a612f3.tar.gz gcc-ef0fec0643369012d898a64bcd349228e0a612f3.tar.bz2 |
parse.y (build_new_array_init): Don't set EXPR_WFL_LINECOL on CONSTRUCTOR (since that trashes TREE_CST_RTL).
�
* parse.y (build_new_array_init): Don't set EXPR_WFL_LINECOL
on CONSTRUCTOR (since that trashes TREE_CST_RTL).
(patch_new_array_init): Clear TREE_CONSTANT also if INDIRECT_REF.
(register_fields): Set TREE_STATIC on NEW_ARRAY_INIT, not on
CONSTRUCTOR (which causes expand_expr to call output_constant_def).
* expr.c (java_lang_expand_expr): Check TREE_STATIC of NEW_ARRAY_INIT.
From-SVN: r24579
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r-- | gcc/java/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 4c5d1bb..136415b 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -1768,7 +1768,7 @@ java_lang_expand_expr (exp, target, tmode, modifier) tree array_decl; #if 0 /* Enable this once we can set the vtable field statically. FIXME */ - if (TREE_CONSTANT (init) && TREE_STATIC (init) + if (TREE_CONSTANT (init) && TREE_STATIC (exp) && JPRIMITIVE_TYPE_P (element_type)) { tree temp, value, init_decl; |