This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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
Attachment:
gc-improv-4-gty-users.patch
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |