aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/decl.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2005-05-24 12:22:03 -0700
committerRichard Henderson <rth@gcc.gnu.org>2005-05-24 12:22:03 -0700
commite0f391dd9030fce35ef9bb3592c1115f56c5a615 (patch)
tree4a60193fab42a6c6d1b45415aecfc9c782a4737b /gcc/java/decl.c
parent8cfb12bfd597944d043b187199d23b3fc8381612 (diff)
downloadgcc-e0f391dd9030fce35ef9bb3592c1115f56c5a615.zip
gcc-e0f391dd9030fce35ef9bb3592c1115f56c5a615.tar.gz
gcc-e0f391dd9030fce35ef9bb3592c1115f56c5a615.tar.bz2
builtins.c (define_builtin): Don't call make_decl_rtl.
* builtins.c (define_builtin): Don't call make_decl_rtl. * constants.c (build_constant_data_ref): Likewise. * class.c (build_utf8_ref): Likewise. (build_fieldref_cache_entry, build_static_field_ref): Likewise. (get_dispatch_table, layout_class_method): Likewise. (build_class_ref): Likewise. Don't set DECL_SIZE or DECL_SIZE_UNIT by hand. (make_local_function_alias): Don't SET_DECL_ASSEMBLER_NAME. (make_method_value): Use METHOD_ABSTRACT instead of DECL_RTL_SET_P to determine if we need a non-zero address. * decl.c (builtin_function): Don't call make_decl_rtl. (give_name_to_locals): Don't SET_DECL_ASSEMBLER_NAME. * expr.c (build_known_method_ref): Don't call make_decl_rtl. * resource.c (compile_resource_data): Likewise. * parse.y (resolve_field_access): Re-word comment to avoid building DECL_RTL. From-SVN: r100108
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r--gcc/java/decl.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index a74e518..5b693cb 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -558,7 +558,6 @@ builtin_function (const char *name,
TREE_PUBLIC (decl) = 1;
if (library_name)
SET_DECL_ASSEMBLER_NAME (decl, get_identifier (library_name));
- make_decl_rtl (decl);
pushdecl (decl);
DECL_BUILT_IN_CLASS (decl) = cl;
DECL_FUNCTION_CODE (decl) = function_code;
@@ -1854,7 +1853,6 @@ give_name_to_locals (JCF *jcf)
{
tree decl = TREE_VEC_ELT (decl_map, slot);
DECL_NAME (decl) = name;
- SET_DECL_ASSEMBLER_NAME (decl, name);
if (TREE_CODE (decl) != PARM_DECL || TREE_TYPE (decl) != type)
warning (0, "bad type in parameter debug info");
}
@@ -1921,7 +1919,6 @@ give_name_to_locals (JCF *jcf)
sprintf (buffer, "ARG_%d", arg_i);
DECL_NAME (parm) = get_identifier (buffer);
}
- SET_DECL_ASSEMBLER_NAME (parm, DECL_NAME (parm));
}
}
}
@@ -2127,6 +2124,11 @@ java_mark_decl_local (tree decl)
/* If we've already constructed DECL_RTL, give encode_section_info
a second chance, now that we've changed the flags. */
+ /* ??? Ideally, we'd have flag_unit_at_a_time set, and not have done
+ anything that would have referenced DECL_RTL so far. But at the
+ moment we force flag_unit_at_a_time off due to excessive memory
+ consumption when compiling large jar files. Which probably means
+ that we need to re-order how we process jar files... */
if (DECL_RTL_SET_P (decl))
make_decl_rtl (decl);
}