TYPE_SYMTAB_POINTER was only used by sdbout.c, so can now be removed. Jim
gcc/ * tree-core.h (tree_type_common): Delete pointer field of tree_type_symtab. * tree.c (copy_node): Clear TYPE_SYMTAB_DIE instead of TYPE_SYMTAB_POINTER. * tree.h (TYPE_SYMTAB_POINTER): Delete. (TYPE_SYMTAB_IS_POINTER): Delete. (TYPE_SYMTAB_IS_DIE): Renumber. --- gcc/tree-core.h | 1 - gcc/tree.c | 2 +- gcc/tree.h | 8 +------- 3 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/gcc/tree-core.h b/gcc/tree-core.h index ed35847..f74f145 100644 --- a/gcc/tree-core.h +++ b/gcc/tree-core.h @@ -1538,7 +1538,6 @@ struct GTY(()) tree_type_common { tree reference_to; union tree_type_symtab { int GTY ((tag ("TYPE_SYMTAB_IS_ADDRESS"))) address; - const char * GTY ((tag ("TYPE_SYMTAB_IS_POINTER"))) pointer; struct die_struct * GTY ((tag ("TYPE_SYMTAB_IS_DIE"))) die; } GTY ((desc ("debug_hooks->tree_type_symtab_field"))) symtab; tree canonical; diff --git a/gcc/tree.c b/gcc/tree.c index fa6fcb1..28e157f 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -1206,8 +1206,8 @@ copy_node (tree node MEM_STAT_DECL) The two statements usually duplicate each other (because they clear fields of the same union), but the optimizer should catch that. */ - TYPE_SYMTAB_POINTER (t) = 0; TYPE_SYMTAB_ADDRESS (t) = 0; + TYPE_SYMTAB_DIE (t) = 0; /* Do not copy the values cache. */ if (TYPE_CACHED_VALUES_P (t)) diff --git a/gcc/tree.h b/gcc/tree.h index 7214ae2..277aa91 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2072,11 +2072,6 @@ extern machine_mode vector_type_mode (const_tree); #define TYPE_SYMTAB_ADDRESS(NODE) \ (TYPE_CHECK (NODE)->type_common.symtab.address) -/* Symtab field as a string. Used by COFF generator in sdbout.c to - hold struct/union type tag names. */ -#define TYPE_SYMTAB_POINTER(NODE) \ - (TYPE_CHECK (NODE)->type_common.symtab.pointer) - /* Symtab field as a pointer to a DWARF DIE. Used by DWARF generator in dwarf2out.c to point to the DIE generated for the type. */ #define TYPE_SYMTAB_DIE(NODE) \ @@ -2087,8 +2082,7 @@ extern machine_mode vector_type_mode (const_tree); union. */ #define TYPE_SYMTAB_IS_ADDRESS (0) -#define TYPE_SYMTAB_IS_POINTER (1) -#define TYPE_SYMTAB_IS_DIE (2) +#define TYPE_SYMTAB_IS_DIE (1) #define TYPE_LANG_SPECIFIC(NODE) \ (TYPE_CHECK (NODE)->type_with_lang_specific.lang_specific) -- 2.7.4