implement a replacement for if_marked
commitf863a58699d3bfadf18c502e1ee4488e7ebfdd15
authortbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Nov 2014 15:10:11 +0000 (20 15:10 +0000)
committertbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Nov 2014 15:10:11 +0000 (20 15:10 +0000)
treefa770de679e7f22bf1d98fb9ad84e84a0d60cfa0
parent2cafda86f9b27c172bc7c237581d9275b0e0ddfd
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217866 138bc75d-0d04-0410-961f-82ee72b054a4
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