Minor optimization of static ggc roots.
authorPer Bothner <per@bothner.com>
Sun, 21 Jan 2001 21:24:30 +0000 (13:24 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Sun, 21 Jan 2001 21:24:30 +0000 (13:24 -0800)
commitb5c4fed92cb6d5fe30e6eac39d1299b2cf998c9d
treefb724a1bb57c4396ebb107ef33d32b2bef5e0b7a
parent3432b91b650d7b134217ee74392840f6a4d85c4b
Minor optimization of static ggc roots.

* jcf-parse.c (parse_roots):  New static field.
(current_field, current_method, current_file_list):  Replace by macros
naming fields of parse_roots.
(init_jcf_parse):  Combine 3 ggc_add_tree_root calls to 1.
* class.c (class_roots):  New static field.
(registered_class, fields_ident, info_ident, class_list):
New macros naming fields of parse_roots.
(build_static_field_ref):  Don't register roots here.
(layout_class):  Static field list replaced by macro class_list.
(init_class_processing):  Call ggc_add_tree_root for 4 roots.
Initialize fields_ident and info_ident here.

From-SVN: r39174
gcc/java/ChangeLog
gcc/java/class.c
gcc/java/jcf-parse.c