]> git.ipfire.org Git - thirdparty/gcc.git/commit
fold-const.c (hashtab.h): Include.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Thu, 20 Sep 2001 15:12:54 +0000 (15:12 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 20 Sep 2001 15:12:54 +0000 (11:12 -0400)
commit4c160717caf980303ced3d3f17ad0bfd7381f3b2
tree9f82325d87e923ce9de88e1e1f44c7643f7d9c53
parentc762ab6ebb62bc1e1d93b6d81b83737e39df2c01
fold-const.c (hashtab.h): Include.

* fold-const.c (hashtab.h): Include.
(int_const_binop): Remove FORSIZE arg and compute from type; all
callers changed.
Call size_int_type_wide for all single-word constants.
(size_htab_hash, size_htab_eq): New functions.
(size_int_type_wide): Rework to use hash table.
* ggc-common.c (hashtab.h): Include.
(struct d_htab_root): New struct.
(d_htab_roots): New variable.
(ggc_add_deletable_htab, ggc_htab_delete): New functions
(ggc_mark_roots): Handle deletable htabs.
* ggc-page.c (ggc_marked_p): New function.
* ggc-simple.c (ggc_marked_p): Likewise.
* ggc.h: Reformatting throughout.
(ggc_marked_p, ggc_add_deletable_htab): New declarations.
* tree.c (init_obstacks): Make type_hash_table a deletable root.
(type_hash_add): Allocate struct type_hash from GC memory.
(mark_hash_entry, mark_type_hash): Deleted.
(type_hash_marked_p, type_hash_mark): New functions.
* Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.

From-SVN: r45710
gcc/ChangeLog
gcc/Makefile.in
gcc/fold-const.c
gcc/ggc-common.c
gcc/ggc-page.c
gcc/ggc-simple.c
gcc/ggc.h
gcc/tree.c