gcc include/ChangeLog include/hashtab.h libibe ...

geoffk@gcc.gnu.org geoffk@gcc.gnu.org
Fri May 10 10:14:00 GMT 2002


CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	pch-branch
Changes by:	geoffk@gcc.gnu.org	2002-05-10 10:14:27

Modified files:
	include        : ChangeLog hashtab.h 
	libiberty      : ChangeLog hashtab.c 
	gcc            : ChangeLog Makefile.in except.c gengtype-lex.l 
	                 gengtype-yacc.y gengtype.c gengtype.h 
	                 ggc-common.c ggc.h tree.c tree.h varasm.c 
	gcc/cp         : ChangeLog Make-lang.in config-lang.in tree.c 

Log message:
	Index: libiberty/ChangeLog
	2002-05-10  Geoffrey Keating  <geoffk@redhat.com>
	
	* hashtab.c (htab_create): Delete.
	(htab_try_create): Delete.
	(htab_create_alloc): New.
	(htab_delete): Support user-specified memory allocation.
	(htab_expand): Likewise.
	
	Index: gcc/ChangeLog
	2002-05-10  Geoffrey Keating  <geoffk@redhat.com>
	
	* varasm.c (mark_const_str_htab_1): Delete.
	(mark_const_str_htab): Delete.
	(const_str_htab_del): Delete.
	(const_str_htab): Use gengtype to mark.
	(init_varasm_once): Use gengtype to mark hashtables.  Use GC to
	allocate them.
	* tree.c (mark_tree_hashtable_entry): Delete.
	(mark_tree_hashtable): Delete.
	* tree.h (mark_tree_hashtable): Delete prototype.
	* ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
	(ggc_mark): Likewise.
	(ggc_calloc): New.
	(htab_create_ggc): New.
	* ggc-common.c (ggc_calloc): New.
	* gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
	(struct type): Add param_struct structure.
	* gengtype.c (param_structs): New.
	(adjust_field_type): Handle param_is option.
	(set_gc_used_type): Handle TYPE_PARAM_STRUCT.
	(get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
	(write_gc_structure_fields): Add new PARAM parameter.  Update
	callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
	(write_gc_marker_routine_for_structure): Add new PARAM parameter.
	Use it to generate function name.  Update callers.
	(write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
	Process them.
	(write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
	option.
	(main): Define PTR as pointer-to-scalar.  Don't specially
	mark deferred_string or ehl_map_entry.
	* gengtype-yacc.y (PARAM_IS): Add new token.
	(externstatic): Use adjust_field_type.
	(type_option): Add PARAM_IS.
	* gengtype-lex.l: Add rule for typedef of function pointers.
	Add rule for PARAM_IS.
	(IWORD): Add size_t.
	* except.c (exception_handler_label_map): Use gengtype to mark.
	(type_to_runtime_map): Likewise.
	(mark_ehl_map_entry): Delete.
	(mark_ehl_map): Delete.
	(init_eh): Use gengtype for roots; use GC to allocate hash tables.
	(t2r_mark_1): Delete.
	(t2r_mark): Delete.
	* Makefile.in (gtype-desc.o): Correct dependencies.
	(GTFILES): Add hashtab.h.
	(genautomata.o): Actually uses hashtab.h.
	
	Index: gcc/cp/ChangeLog
	2002-05-10  Geoffrey Keating  <geoffk@redhat.com>
	
	* Make-lang.in (gt-cp-tree.h): New rule.
	(cp/tree.o): Depend on gt-cp-tree.h.
	* config-lang.in (gtfiles): Add cp/tree.c.
	* tree.c: Include gt-cp-tree.h.
	(list_hash_table): Use gengtype to mark.
	(init_tree): Use gengtype to mark trees.
	
	Index: include/ChangeLog
	2002-05-10  Geoffrey Keating  <geoffk@redhat.com>
	
	* hashtab.h (GTY): Define if undefined.
	(htab_alloc): New typedef.
	(htab_free): New typedef.
	(struct htab): Support gengtype; allow user-specified memory
	allocation.
	(htab_create_alloc): New.
	(htab_create): Replace with #define.
	(htab_try_create): Delete.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/include/ChangeLog.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.103.4.3&r2=1.103.4.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/include/hashtab.h.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.11&r2=1.11.12.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libiberty/ChangeLog.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.345.6.3&r2=1.345.6.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libiberty/hashtab.c.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.25.6.1&r2=1.25.6.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.12690.2.34&r2=1.12690.2.35
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/Makefile.in.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.822.2.13&r2=1.822.2.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/except.c.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.210.2.7&r2=1.210.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gengtype-lex.l.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.1.2.7&r2=1.1.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gengtype-yacc.y.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.1.2.8&r2=1.1.2.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gengtype.c.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.1.2.15&r2=1.1.2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gengtype.h.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.1.2.7&r2=1.1.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ggc-common.c.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.46.4.11&r2=1.46.4.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ggc.h.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.39.6.12&r2=1.39.6.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.230.2.7&r2=1.230.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.299.2.9&r2=1.299.2.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/varasm.c.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.243.2.12&r2=1.243.2.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.2639.2.12&r2=1.2639.2.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/Make-lang.in.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.103.6.7&r2=1.103.6.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/config-lang.in.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.10.6.2&r2=1.10.6.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/tree.c.diff?cvsroot=gcc&only_with_tag=pch-branch&r1=1.264.6.5&r2=1.264.6.6



More information about the Gcc-cvs mailing list