diff options
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 13 | ||||
-rw-r--r-- | gcc/java/class.c | 8 | ||||
-rw-r--r-- | gcc/java/constants.c | 2 | ||||
-rw-r--r-- | gcc/java/expr.c | 1 | ||||
-rw-r--r-- | gcc/java/resource.c | 1 |
5 files changed, 13 insertions, 12 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index b77812d..a9487a9 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,16 @@ +2008-04-23 Paolo Bonzini <bonzini@gnu.org> + + * class.c (build_utf8_ref): Don't set TREE_INVARIANT. + (build_classdollar_field): Don't set TREE_INVARIANT. + (get_dispatch_table): Don't set TREE_INVARIANT. + (make_class_data): Don't set TREE_INVARIANT. + (build_symbol_entry): Don't set TREE_INVARIANT. + (emit_symbol_table): Don't set TREE_INVARIANT. + * constants.c (build_constant_data_ref): Don't set TREE_INVARIANT. + (build_ref_from_constant_pool): Don't set TREE_INVARIANT. + * resource.c (compile_resource_data): Don't set TREE_INVARIANT. + * expr.c (cache_cpool_data_ref): Don't set TREE_INVARIANT. + 2008-04-03 Tom Tromey <tromey@redhat.com> * Make-lang.in (java_OBJS): New variable. diff --git a/gcc/java/class.c b/gcc/java/class.c index 4eb3360..85e37bc 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -955,7 +955,6 @@ build_utf8_ref (tree name) PUSH_FIELD_VALUE (cinit, "data", string); FINISH_RECORD_CONSTRUCTOR (cinit); TREE_CONSTANT (cinit) = 1; - TREE_INVARIANT (cinit) = 1; /* Generate a unique-enough identifier. */ sprintf(buf, "_Utf%d", ++utf8_count); @@ -1063,7 +1062,6 @@ build_classdollar_field (tree type) /* const */ 1, 0)), /* const */ 1, 0))); TREE_STATIC (decl) = 1; - TREE_INVARIANT (decl) = 1; TREE_CONSTANT (decl) = 1; TREE_READONLY (decl) = 1; TREE_PUBLIC (decl) = 1; @@ -1604,7 +1602,6 @@ get_dispatch_table (tree type, tree this_class_addr) tree fdesc = build2 (FDESC_EXPR, nativecode_ptr_type_node, method, build_int_cst (NULL_TREE, j)); TREE_CONSTANT (fdesc) = 1; - TREE_INVARIANT (fdesc) = 1; list = tree_cons (NULL_TREE, fdesc, list); } else @@ -2076,7 +2073,6 @@ make_class_data (tree type) build1 (ADDR_EXPR, symbols_array_ptr_type, TYPE_OTABLE_SYMS_DECL (type))); TREE_CONSTANT (TYPE_OTABLE_DECL (type)) = 1; - TREE_INVARIANT (TYPE_OTABLE_DECL (type)) = 1; } if (TYPE_ATABLE_METHODS(type) == NULL_TREE) { @@ -2092,7 +2088,6 @@ make_class_data (tree type) build1 (ADDR_EXPR, symbols_array_ptr_type, TYPE_ATABLE_SYMS_DECL (type))); TREE_CONSTANT (TYPE_ATABLE_DECL (type)) = 1; - TREE_INVARIANT (TYPE_ATABLE_DECL (type)) = 1; } if (TYPE_ITABLE_METHODS(type) == NULL_TREE) { @@ -2108,7 +2103,6 @@ make_class_data (tree type) build1 (ADDR_EXPR, symbols_array_ptr_type, TYPE_ITABLE_SYMS_DECL (type))); TREE_CONSTANT (TYPE_ITABLE_DECL (type)) = 1; - TREE_INVARIANT (TYPE_ITABLE_DECL (type)) = 1; } PUSH_FIELD_VALUE (cons, "catch_classes", @@ -2848,7 +2842,6 @@ build_symbol_entry (tree decl, tree special) PUSH_FIELD_VALUE (sym, "signature", signature); FINISH_RECORD_CONSTRUCTOR (sym); TREE_CONSTANT (sym) = 1; - TREE_INVARIANT (sym) = 1; return sym; } @@ -2889,7 +2882,6 @@ emit_symbol_table (tree name, tree the_table, tree decl_list, PUSH_FIELD_VALUE (null_symbol, "signature", null_pointer_node); FINISH_RECORD_CONSTRUCTOR (null_symbol); TREE_CONSTANT (null_symbol) = 1; - TREE_INVARIANT (null_symbol) = 1; list = tree_cons (NULL_TREE, null_symbol, list); /* Put the list in the right order and make it a constructor. */ diff --git a/gcc/java/constants.c b/gcc/java/constants.c index 8a3c532c..5294285 100644 --- a/gcc/java/constants.c +++ b/gcc/java/constants.c @@ -445,7 +445,6 @@ build_constant_data_ref (bool indirect) TREE_THIS_NOTRAP (klass) = 1; data = fold_convert (build_pointer_type (cpool_type), data); d = build1 (INDIRECT_REF, cpool_type, data); - TREE_INVARIANT (d) = 1; return d; } @@ -485,7 +484,6 @@ build_ref_from_constant_pool (int index) i = build_int_cst (NULL_TREE, index); d = build4 (ARRAY_REF, TREE_TYPE (TREE_TYPE (d)), d, i, NULL_TREE, NULL_TREE); - TREE_INVARIANT (d) = 1; return d; } diff --git a/gcc/java/expr.c b/gcc/java/expr.c index b113df1..75c18e5 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -3809,7 +3809,6 @@ cache_cpool_data_ref (void) tree cpool_ptr = build_decl (VAR_DECL, NULL_TREE, build_pointer_type (TREE_TYPE (d))); java_add_local_var (cpool_ptr); - TREE_INVARIANT (cpool_ptr) = 1; TREE_CONSTANT (cpool_ptr) = 1; java_add_stmt (build2 (MODIFY_EXPR, TREE_TYPE (cpool_ptr), diff --git a/gcc/java/resource.c b/gcc/java/resource.c index e0a403e..d01eb8e 100644 --- a/gcc/java/resource.c +++ b/gcc/java/resource.c @@ -73,7 +73,6 @@ compile_resource_data (const char *name, const char *buffer, int length) PUSH_FIELD_VALUE (rinit, "data", data); FINISH_RECORD_CONSTRUCTOR (rinit); TREE_CONSTANT (rinit) = 1; - TREE_INVARIANT (rinit) = 1; decl = build_decl (VAR_DECL, java_mangle_resource_name (name), rtype); TREE_STATIC (decl) = 1; |