implement a replacement for if_marked

Programming / Compilers / GCC - tbsaunde [138bc75d-0d04-0410-961f-82ee72b054a4] - 20 November 2014 09:10 UTC

gcc/ChangeLog:

2014-11-20 Trevor Saunders

- doc/gty.texi: Document the new cache gty attribute.
- gengtype.c (finish_cache_funcs): New function. (write_roots): Call gt_clear_cache on global variables with the cache gty attribute.
- ggc-common.c (ggc_mark_roots): Call gt_clear_caches.
- ggc.h (gt_clear_caches): New declaration.
- hash-table.h (struct ggc_cache_hasher): New hasher for caches in gc memory. (gt_cleare_cache): New function.
- emit-rtl.c, rtl.h, tree.c: Use hash_table instead of htab.

f863a58 implement a replacement for if_marked
gcc/ChangeLog | 13 ++++
gcc/doc/gty.texi | 8 +++
gcc/emit-rtl.c | 178 ++++++++++++++++++++++++++++--------------------------
gcc/gengtype.c | 87 ++++++++++++++++++++++++++
gcc/ggc-common.c | 2 +
gcc/ggc.h | 3 +
gcc/hash-table.h | 50 +++++++++++++++
gcc/rtl.h | 2 +-
gcc/tree.c | 100 ++++++++++++++----------------
9 files changed, 302 insertions(+), 141 deletions(-)

Upstream: gcc.gnu.org


  • Share