diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-22 18:29:36 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-22 18:29:36 +0000 |
commit | fb1e4f4abf01d3559f37568d2624b734410d3b3e (patch) | |
tree | c5c412bca065fddee835089ec9fbd863ee283f18 /gcc/java | |
parent | 57187d90a77fa29871fa5bbf1bffe9cdb35b8cfa (diff) | |
download | gcc-fb1e4f4abf01d3559f37568d2624b734410d3b3e.tar.gz |
2009-04-21 Taras Glek <tglek@mozilla.com>
* include/hashtab.h: Update GTY annotations to new syntax
* include/splay-tree.h: Likewise
gcc/ChangeLog
2009-04-21 Taras Glek <tglek@mozilla.com>
* alias.c: Update GTY annotations to new syntax
* basic-block.h: Likewise
* bitmap.h: Likewise
* c-common.h: Likewise
* c-decl.c: Likewise
* c-parser.c: Likewise
* c-pragma.c: Likewise
* c-tree.h: Likewise
* cfgloop.h: Likewise
* cgraph.h: Likewise
* config/alpha/alpha.c: Likewise
* config/arm/arm.h: Likewise
* config/avr/avr.h: Likewise
* config/bfin/bfin.c: Likewise
* config/cris/cris.c: Likewise
* config/darwin.c: Likewise
* config/frv/frv.c: Likewise
* config/i386/i386.c: Likewise
* config/i386/i386.h: Likewise
* config/i386/winnt.c: Likewise
* config/ia64/ia64.h: Likewise
* config/iq2000/iq2000.c: Likewise
* config/mips/mips.c: Likewise
* config/mmix/mmix.h: Likewise
* config/pa/pa.c: Likewise
* config/pa/pa.h: Likewise
* config/rs6000/rs6000.c: Likewise
* config/s390/s390.c: Likewise
* config/sparc/sparc.c: Likewise
* config/xtensa/xtensa.c: Likewise
* cselib.h: Likewise
* dbxout.c: Likewise
* dwarf2out.c: Likewise
* except.c: Likewise
* except.h: Likewise
* fixed-value.h: Likewise
* function.c: Likewise
* function.h: Likewise
* gimple.h: Likewise
* integrate.c: Likewise
* optabs.c: Likewise
* output.h: Likewise
* real.h: Likewise
* rtl.h: Likewise
* stringpool.c: Likewise
* tree-data-ref.c: Likewise
* tree-flow.h: Likewise
* tree-scalar-evolution.c: Likewise
* tree-ssa-address.c: Likewise
* tree-ssa-alias.h: Likewise
* tree-ssa-operands.h: Likewise
* tree.c: Likewise
* tree.h: Likewise
* varasm.c: Likewise
* varray.h: Likewise
* vec.h: Likewise
* coretypes.h: Do not define GTY macro if it is already defined
* doc/gty.texi: Update GTY documentation to new syntax
* gengtype-lex.l: Enforce attribute-like syntax for GTY annotations on structs
* gengtype-parse.c: Likewise
gcc/ada/ChangeLog
2009-04-21 Taras Glek <tglek@mozilla.com>
* gcc-interface/ada-tree.h: Update GTY annotations to new syntax
* gcc-interface/trans.c: Likewise
* gcc-interface/utils.c: Likewise
gcc/cp/ChangeLog
2009-04-21 Taras Glek <tglek@mozilla.com>
* cp-tree.h: Update GTY annotations to new syntax
* decl.c: Likewise
* mangle.c: Likewise
* name-lookup.c: Likewise
* name-lookup.h: Likewise
* parser.c: Likewise
* pt.c: Likewise
* rtti.c: Likewise
* semantics.c: Likewise
* typeck2.c: Likewise
gcc/fortran/ChangeLog
2009-04-21 Taras Glek <tglek@mozilla.com>
* f95-lang.c: Update GTY annotations to new syntax
* trans-intrinsic.c: Likewise
* trans-io.c: Likewise
* trans.h: Likewise
gcc/java/ChangeLog
2009-04-21 Taras Glek <tglek@mozilla.com>
* builtins.c: Update GTY annotations to new syntax
* decl.c: Likewise
* java-tree.h: Likewise
* jcf.h: Likewise
* lang.c: Likewise
gcc/objc/ChangeLog
2009-04-21 Taras Glek <tglek@mozilla.com>
* objc-act.c: Update GTY annotations to new syntax
* objc-act.h: Likewise
libcpp/ChangeLog
2009-04-21 Taras Glek <tglek@mozilla.com>
* include/cpp-id-data.h: Update GTY annotations to new syntax
* include/cpplib.h: Likewise
* include/line-map.h: Likewise
* include/symtab.h: Likewise
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146607 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/java/builtins.c | 6 | ||||
-rw-r--r-- | gcc/java/decl.c | 4 | ||||
-rw-r--r-- | gcc/java/java-tree.h | 28 | ||||
-rw-r--r-- | gcc/java/jcf.h | 6 | ||||
-rw-r--r-- | gcc/java/lang.c | 3 |
6 files changed, 26 insertions, 29 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 6661265bf42..364ddb3a7b6 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,11 @@ +2009-04-21 Taras Glek <tglek@mozilla.com> + + * builtins.c: Update GTY annotations to new syntax + * decl.c: Likewise + * java-tree.h: Likewise + * jcf.h: Likewise + * lang.c: Likewise + 2009-04-21 Joseph Myers <joseph@codesourcery.com> * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and diff --git a/gcc/java/builtins.c b/gcc/java/builtins.c index 7ba12d3d431..4fac1446f97 100644 --- a/gcc/java/builtins.c +++ b/gcc/java/builtins.c @@ -65,15 +65,13 @@ typedef tree builtin_creator_function (tree, tree); /* Hold a char*, before initialization, or a tree, after initialization. */ -union string_or_tree GTY(()) -{ +union GTY(()) string_or_tree { const char * GTY ((tag ("0"))) s; tree GTY ((tag ("1"))) t; }; /* Used to hold a single builtin record. */ -struct builtin_record GTY(()) -{ +struct GTY(()) builtin_record { union string_or_tree GTY ((desc ("1"))) class_name; union string_or_tree GTY ((desc ("1"))) method_name; builtin_creator_function * GTY((skip)) creator; diff --git a/gcc/java/decl.c b/gcc/java/decl.c index bae077887bf..bd0cc8e4de6 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -351,8 +351,8 @@ find_stack_slot (int index, tree type) type, -1); } -struct binding_level GTY(()) - { +struct GTY(()) + binding_level { /* A chain of _DECL nodes for all variables, constants, functions, * and typedef types. These are in the reverse of the order supplied. */ diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index 7ae71d9e41b..9ab76606b46 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -635,8 +635,7 @@ extern GTY(()) tree java_global_trees[JTI_MAX]; /* The decl for "_Jv_ResolvePoolEntry". */ extern GTY(()) tree soft_resolvepoolentry_node; -struct lang_identifier GTY(()) -{ +struct GTY(()) lang_identifier { struct tree_identifier ignore; tree global_value; tree local_value; @@ -647,11 +646,10 @@ struct lang_identifier GTY(()) }; /* The resulting tree type. */ -union lang_tree_node - GTY((desc ("TREE_CODE (&%h.generic) == IDENTIFIER_NODE"), +union GTY((desc ("TREE_CODE (&%h.generic) == IDENTIFIER_NODE"), chain_next ("(union lang_tree_node *)TREE_CHAIN (&%h.generic)"))) - -{ + + lang_tree_node { union tree_node GTY ((tag ("0"), desc ("tree_node_structure (&%h)"))) generic; @@ -772,8 +770,7 @@ union lang_tree_node || TREE_CODE (NODE) == REAL_CST) /* DECL_LANG_SPECIFIC for FUNCTION_DECLs. */ -struct lang_decl_func GTY(()) -{ +struct GTY(()) lang_decl_func { /* tree chain; not yet used. */ long code_offset; int code_length; @@ -803,8 +800,7 @@ struct lang_decl_func GTY(()) unsigned int varargs : 1; /* Varargs method. */ }; -struct treetreehash_entry GTY(()) -{ +struct GTY(()) treetreehash_entry { tree key; tree value; }; @@ -840,8 +836,7 @@ typedef enum JV_ANNOTATION_DEFAULT_KIND } jv_attr_kind; -typedef struct type_assertion GTY(()) -{ +typedef struct GTY(()) type_assertion { int assertion_code; /* 'opcode' for the type of this assertion. */ tree op1; /* First operand. */ tree op2; /* Second operand. */ @@ -853,8 +848,7 @@ extern htab_t java_treetreehash_create (size_t size, int ggc); /* DECL_LANG_SPECIFIC for VAR_DECL, PARM_DECL and sometimes FIELD_DECL (access methods on outer class fields) and final fields. */ -struct lang_decl_var GTY(()) -{ +struct GTY(()) lang_decl_var { int slot_number; int start_pc; int end_pc; @@ -871,8 +865,7 @@ struct lang_decl_var GTY(()) enum lang_decl_desc {LANG_DECL_FUNC, LANG_DECL_VAR}; -struct lang_decl GTY(()) -{ +struct GTY(()) lang_decl { enum lang_decl_desc desc; union lang_decl_u { @@ -927,8 +920,7 @@ struct lang_decl GTY(()) #define TYPE_REFLECTION_DATASIZE(T) \ (TYPE_LANG_SPECIFIC (T)->reflection_datasize) -struct lang_type GTY(()) -{ +struct GTY(()) lang_type { tree signature; struct JCF *jcf; struct CPool *cpool; diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h index 40bbd725d45..7e8d18d9b3f 100644 --- a/gcc/java/jcf.h +++ b/gcc/java/jcf.h @@ -66,7 +66,7 @@ jcf_open_exact_case (const char* filename, int oflag); struct JCF; typedef int (*jcf_filbuf_t) (struct JCF*, int needed); -union cpool_entry GTY(()) { +union GTY(()) cpool_entry { jword GTY ((tag ("0"))) w; tree GTY ((tag ("1"))) t; }; @@ -74,7 +74,7 @@ union cpool_entry GTY(()) { #define cpool_entry_is_tree(tag) \ (tag & CONSTANT_ResolvedFlag) || tag == CONSTANT_Utf8 -typedef struct CPool GTY(()) { +typedef struct GTY(()) CPool { /* Available number of elements in the constants array, before it must be re-allocated. */ int capacity; @@ -92,7 +92,7 @@ struct ZipDirectory; /* JCF encapsulates the state of reading a Java Class File. */ -typedef struct JCF GTY(()) { +typedef struct GTY(()) JCF { unsigned char * GTY ((skip)) buffer; unsigned char * GTY ((skip)) buffer_end; unsigned char * GTY ((skip)) read_ptr; diff --git a/gcc/java/lang.c b/gcc/java/lang.c index c4311412e3e..61337ccf2a9 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -111,8 +111,7 @@ static int dependency_tracking = 0; #define DEPEND_TARGET_SET 4 #define DEPEND_FILE_ALREADY_SET 8 -struct language_function GTY(()) -{ +struct GTY(()) language_function { int unused; }; |