[PATCH] [c,c++,ada,java,fortran,libcpp,lto,middle-end] gc-improv merge (4/n): GTY user changes

Laurynas Biveinis laurynas.biveinis@gmail.com
Tue May 25 07:46:00 GMT 2010


This patch does two things:

1) Annotates with the GTY option variable_size the types that need it.
To remind, these are the types for which we do not know at compile
time how many bytes per object we need to allocate.
2) Introduces couple of pointer typedefs to help out gengtype. For
example, if we have struct foo { ... }, then gengtype is not able to
output an allocator for vector of pointers to foo, as that requires
two levels of indirection. However if we have
typedef struct foo *foo_ptr, all is fine.

Bootstrapped/regtested on x86_64/linux with the rest of the gc-improv branch.

OK for the trunk with the rest of the branch?

libcpp:

2010-05-25  Laurynas Biveinis  <laurynas.biveinis@gmail.com>

	* include/symtab.h (ht_identifier_ptr): New.

gcc/ada:

2009-08-23  Laurynas Biveinis  <laurynas.biveinis@gmail.com>

	* gcc-interface/ada-tree.h (struct lang_type): Add variable_size
	GTY option.
	(struct lang_decl): Likewise.

gcc/cp:

2010-05-25  Laurynas Biveinis  <laurynas.biveinis@gmail.com>

	* cp-tree.h (struct lang_type): Add variable_size GTY option.
	(struct lang_decl): Likewise.

gcc/fortran:

2010-05-25  Laurynas Biveinis  <laurynas.biveinis@gmail.com>

	* trans.h (struct lang_type): Add variable_size GTY option.
	(struct lang_decl): Likewise.

gcc/java:

2010-10-25  Laurynas Biveinis  <laurynas.biveinis@gmail.com>

	* java-tree.h (struct lang_type): Add variable_size GTY option.
	(struct lang_decl): Likewise.
	* jch.h (struct cpool_entry): Likewise.

gcc:

2010-05-25  Laurynas Biveinis  <laurynas.biveinis@gmail.com>

	* lto-streamer.h (lto_file_decl_data_ptr): New.
	* passes.c (order): Define using cgraph_node_ptr.
	* strinpool.c (struct string_pool_data): Declare nested_ptr using
	ht_identifier_ptr.
	* c-common.h (struct sorted_fields_type): Add variable_size GTY
	option.
	* gimple.h (union gimple_statement_d): Likewise.
	* rtl.h (struct rtx_def): Likewise.
	(struct rtvec_def): Likewise.
	* tree.h (union tree_node): Likewise.
	* tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.

-- 
Laurynas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gc-improv-4-gty-users.patch
Type: application/octet-stream
Size: 8649 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100525/972ec6b0/attachment.obj>


More information about the Gcc-patches mailing list