]> gcc.gnu.org Git - gcc.git/commit - gcc/rtl.h
ggc-common.c (ggc_alloc_cleared_stat, [...]): Rename from ...; make statistics transp...
authorJan Hubicka <jh@suse.cz>
Wed, 3 Mar 2004 11:25:51 +0000 (12:25 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 3 Mar 2004 11:25:51 +0000 (11:25 +0000)
commitb9dcdee46edefdb67cbbb5aa0829fba999c2a1f0
tree2b3885b2b287da398b70600d8381767cc76aa181
parent6ba7b54780fd483f81c39e0ac07537cbe40063df
ggc-common.c (ggc_alloc_cleared_stat, [...]): Rename from ...; make statistics transparent.

* ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
Rename from ...; make statistics transparent.
(ggc_alloc_cleared, ggc_realloc_stat): ... these.
(loc_descriptor): New structure.
(hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
add_statistics):
New static function.
(ggc_record_overhead, dump_statistics): New global function.
* ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
from ...; accept locations
(ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
ggc_realloc, ggc_alloc_typed):  ... this one.
from ...; accept locations
* ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
ggc_alloc_stat): Rename from ... ; pass locations
* ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
... this one.
(ggc_alloc_stat): Record overehead.
* ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
ggc_realloc, ggc_alloc_typed):  Turn to macros
(ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
(dump_ggc_loc_satistics, ggc_record_overehead): Declare.
* langhooks.h (lhd_make_node): Declare.
(LANG_HOOKS_MAKE_TYPE): Default to new function,
* langhooks.c (lhd_make_node): New.
* rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
locations.
(rtx_alloc, swallow_copy_rtx): ... this one.
* rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
* rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
* toplpev.c (finalize): Dump stats.
* tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
Rename from ... ; pass locators.
(make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
build?,  build_decl): Declare.
* tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
Declare.
(make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
build?,  build_decl): New macros.
* Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
* statistics.h: New file.

From-SVN: r78826
14 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/ggc-common.c
gcc/ggc-none.c
gcc/ggc-page.c
gcc/ggc.h
gcc/langhooks-def.h
gcc/langhooks.c
gcc/rtl.c
gcc/rtl.h
gcc/statistics.h [new file with mode: 0644]
gcc/toplev.c
gcc/tree.c
gcc/tree.h
This page took 0.060099 seconds and 5 git commands to generate.