implement a replacement for if_marked
authorTrevor Saunders <tsaunders@mozilla.com>
Thu, 20 Nov 2014 15:10:11 +0000 (15:10 +0000)
committerTrevor Saunders <tbsaunde@gcc.gnu.org>
Thu, 20 Nov 2014 15:10:11 +0000 (15:10 +0000)
commitaebf76a2d6de989fe3e8c88aa047e4cfbd1e340e
treefa770de679e7f22bf1d98fb9ad84e84a0d60cfa0
parent77486f4480db2a2365e08a08c223655c7335aab4
implement a replacement for if_marked

gcc/ChangeLog:

2014-11-20  Trevor Saunders  <tsaunders@mozilla.com>

* 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.

From-SVN: r217866
gcc/ChangeLog
gcc/doc/gty.texi
gcc/emit-rtl.c
gcc/gengtype.c
gcc/ggc-common.c
gcc/ggc.h
gcc/hash-table.h
gcc/rtl.h
gcc/tree.c