From fb1e4f4abf01d3559f37568d2624b734410d3b3e Mon Sep 17 00:00:00 2001 From: dnovillo Date: Wed, 22 Apr 2009 18:29:36 +0000 Subject: 2009-04-21 Taras Glek * include/hashtab.h: Update GTY annotations to new syntax * include/splay-tree.h: Likewise gcc/ChangeLog 2009-04-21 Taras Glek * 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 * 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 * 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 * 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 * 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 * objc-act.c: Update GTY annotations to new syntax * objc-act.h: Likewise libcpp/ChangeLog 2009-04-21 Taras Glek * 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 --- libcpp/ChangeLog | 7 +++++++ libcpp/include/cpp-id-data.h | 6 ++---- libcpp/include/cpplib.h | 12 ++++-------- libcpp/include/line-map.h | 6 ++---- libcpp/include/symtab.h | 3 +-- 5 files changed, 16 insertions(+), 18 deletions(-) (limited to 'libcpp') diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index ff720612a56..a9ccc59717b 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,10 @@ +2009-04-21 Taras Glek + + * include/cpp-id-data.h: Update GTY annotations to new syntax. + * include/cpplib.h: Likewise. + * include/line-map.h: Likewise. + * include/symtab.h: Likewise. + 2009-04-22 Manuel Lopez-Ibanez PR c++/14875 diff --git a/libcpp/include/cpp-id-data.h b/libcpp/include/cpp-id-data.h index 029d424d511..a57edad521d 100644 --- a/libcpp/include/cpp-id-data.h +++ b/libcpp/include/cpp-id-data.h @@ -25,8 +25,7 @@ typedef unsigned char uchar; #define UC (const unsigned char *) /* Intended use: UC"string" */ /* Chained list of answers to an assertion. */ -struct answer GTY(()) -{ +struct GTY(()) answer { struct answer *next; unsigned int count; cpp_token GTY ((length ("%h.count"))) first[1]; @@ -34,8 +33,7 @@ struct answer GTY(()) /* Each macro definition is recorded in a cpp_macro structure. Variadic macros cannot occur with traditional cpp. */ -struct cpp_macro GTY(()) -{ +struct GTY(()) cpp_macro { /* Parameters, if any. */ cpp_hashnode ** GTY ((nested_ptr (union tree_node, "%h ? CPP_HASHNODE (GCC_IDENT_TO_HT_IDENT (%h)) : NULL", diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h index b38d9f43ef5..80e905686fc 100644 --- a/libcpp/include/cpplib.h +++ b/libcpp/include/cpplib.h @@ -162,8 +162,7 @@ enum c_lang {CLK_GNUC89 = 0, CLK_GNUC99, CLK_STDC89, CLK_STDC94, CLK_STDC99, CLK_GNUCXX, CLK_CXX98, CLK_GNUCXX0X, CLK_CXX0X, CLK_ASM}; /* Payload of a NUMBER, STRING, CHAR or COMMENT token. */ -struct cpp_string GTY(()) -{ +struct GTY(()) cpp_string { unsigned int len; const unsigned char *text; }; @@ -196,8 +195,7 @@ enum cpp_token_fld_kind { /* A preprocessing token. This has been carefully packed and should occupy 16 bytes on 32-bit hosts and 24 bytes on 64-bit hosts. */ -struct cpp_token GTY(()) -{ +struct GTY(()) cpp_token { source_location src_loc; /* Location of first char of token. */ ENUM_BITFIELD(cpp_ttype) type : CHAR_BIT; /* token type */ unsigned short flags; /* flags - see above */ @@ -604,8 +602,7 @@ enum { ends. Also used to store CPP identifiers, which are a superset of identifiers in the grammatical sense. */ -union _cpp_hashnode_value GTY(()) -{ +union GTY(()) _cpp_hashnode_value { /* If a macro. */ cpp_macro * GTY((tag ("NTV_MACRO"))) macro; /* Answers to an assertion. */ @@ -616,8 +613,7 @@ union _cpp_hashnode_value GTY(()) unsigned short GTY ((tag ("NTV_ARGUMENT"))) arg_index; }; -struct cpp_hashnode GTY(()) -{ +struct GTY(()) cpp_hashnode { struct ht_identifier ident; unsigned int is_directive : 1; unsigned int directive_index : 7; /* If is_directive, diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h index 56ab79a2608..b556013af62 100644 --- a/libcpp/include/line-map.h +++ b/libcpp/include/line-map.h @@ -58,8 +58,7 @@ typedef void *(*line_map_realloc) (void *, size_t); creation of this line map, SYSP is one for a system header, two for a C system header file that therefore needs to be extern "C" protected in C++, and zero otherwise. */ -struct line_map GTY(()) -{ +struct GTY(()) line_map { const char *to_file; linenum_type to_line; source_location start_location; @@ -72,8 +71,7 @@ struct line_map GTY(()) }; /* A set of chronological line_map structures. */ -struct line_maps GTY(()) -{ +struct GTY(()) line_maps { struct line_map * GTY ((length ("%h.used"))) maps; unsigned int allocated; unsigned int used; diff --git a/libcpp/include/symtab.h b/libcpp/include/symtab.h index 225301e10ff..e7c593731bc 100644 --- a/libcpp/include/symtab.h +++ b/libcpp/include/symtab.h @@ -27,8 +27,7 @@ along with this program; see the file COPYING3. If not see /* This is what each hash table entry points to. It may be embedded deeply within another object. */ typedef struct ht_identifier ht_identifier; -struct ht_identifier GTY(()) -{ +struct GTY(()) ht_identifier { const unsigned char *str; unsigned int len; unsigned int hash_value; -- cgit v1.2.1