aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorTrevor Saunders <tsaunders@mozilla.com>2014-11-20 15:10:11 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2014-11-20 15:10:11 +0000
commitaebf76a2d6de989fe3e8c88aa047e4cfbd1e340e (patch)
treefa770de679e7f22bf1d98fb9ad84e84a0d60cfa0 /gcc/rtl.h
parent77486f4480db2a2365e08a08c223655c7335aab4 (diff)
downloadgcc-aebf76a2d6de989fe3e8c88aa047e4cfbd1e340e.zip
gcc-aebf76a2d6de989fe3e8c88aa047e4cfbd1e340e.tar.gz
gcc-aebf76a2d6de989fe3e8c88aa047e4cfbd1e340e.tar.bz2
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
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 3bfb6bf..b9d62ae 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -181,7 +181,7 @@ struct GTY(()) mem_attrs
object in the low part of a 4-byte register, the OFFSET field
will be -3 rather than 0. */
-struct GTY(()) reg_attrs {
+struct GTY((for_user)) reg_attrs {
tree decl; /* decl corresponding to REG. */
HOST_WIDE_INT offset; /* Offset from start of DECL. */
};