diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2003-04-07 06:03:17 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2003-04-07 06:03:17 +0000 |
commit | d78e771d468c7280b95c7dbbafcdd87d69357d80 (patch) | |
tree | 85a5a4cad3cfe432c546c4df2134dac37924265c /gcc/cp/cp-tree.h | |
parent | a9c89a57f64d057fac96a9bbdbcde6ba7656ad55 (diff) | |
download | gcc-d78e771d468c7280b95c7dbbafcdd87d69357d80.zip gcc-d78e771d468c7280b95c7dbbafcdd87d69357d80.tar.gz gcc-d78e771d468c7280b95c7dbbafcdd87d69357d80.tar.bz2 |
tree.c (tree_size): For all 'c' and 'x' nodes...
* tree.c (tree_size): For all 'c' and 'x' nodes, look directly
at the sizes of the relevant structures, rather than relying
on TREE_CODE_LENGTH. Call lang_hooks.tree_size to get the
sizes of any such we don't know about. Use
lang_hooks.identifier_size for IDENTIFIER_NODE.
(initializer_zerop): Use CONSTRUCTOR_ELTS.
* tree.def: Update commentary. Make fourth element of
the definition for all 'c' and 'x' nodes zero.
* langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
* langhooks-def.h: Update to match.
* langhooks.c: New default, lhd_tree_size.
* c-common.def (SRCLOC): Kill.
* c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
Remove entirely - was already #if-ed out.
ada:
* ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
* misc.c (gnat_tree_size): New function.
(LANG_HOOKS_TREE_SIZE): Override.
cp:
* cp-tree.def: Make fourth element for all 'c' and 'x' nodes zero.
* cp-lang.c (cp_tree_size): New function.
(LANG_HOOKS_TREE_SIZE): Override.
* cp-tree.h (SOURCE_LOCUS, SRCLOC_FILE, SRCLOC_LINE, struct
tree_srcloc, TS_CP_COMMON, TS_CP_SRCLOC): Kill.
(union lang_tree_node): Remove common and srcloc members.
(build_srcloc_here): Don't prototype.
* decl.c (cp_tree_node_structure): Kill SRCLOC case.
* pt.c (pending_templates): Correct comment.
* tree.c (build_srcloc, build_srcloc_here): Kill.
From-SVN: r65323
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r-- | gcc/cp/cp-tree.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 92a227f..2986d6b 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -353,17 +353,6 @@ struct tree_wrapper GTY(()) struct z_candidate *z_c; }; -#define SOURCE_LOCUS(NODE) \ - (((struct tree_srcloc*)SRCLOC_CHECK (NODE))->locus) -#define SRCLOC_FILE(NODE) SOURCE_LOCUS (NODE).file -#define SRCLOC_LINE(NODE) SOURCE_LOCUS (NODE).line - -struct tree_srcloc GTY(()) -{ - struct tree_common common; - location_t locus; -}; - /* Macros for access to language-specific slots in an identifier. */ #define IDENTIFIER_NAMESPACE_BINDINGS(NODE) \ @@ -466,7 +455,6 @@ struct tree_default_arg GTY (()) }; enum cp_tree_node_structure_enum { - TS_CP_COMMON, TS_CP_GENERIC, TS_CP_IDENTIFIER, TS_CP_TPI, @@ -475,7 +463,6 @@ enum cp_tree_node_structure_enum { TS_CP_OVERLOAD, TS_CP_BASELINK, TS_CP_WRAPPER, - TS_CP_SRCLOC, TS_CP_DEFAULT_ARG, LAST_TS_CP_ENUM }; @@ -484,7 +471,6 @@ enum cp_tree_node_structure_enum { union lang_tree_node GTY((desc ("cp_tree_node_structure (&%h)"), chain_next ("(union lang_tree_node *)TREE_CHAIN (&%h.generic)"))) { - struct tree_common GTY ((tag ("TS_CP_COMMON"))) common; union tree_node GTY ((tag ("TS_CP_GENERIC"), desc ("tree_node_structure (&%h)"))) generic; struct template_parm_index_s GTY ((tag ("TS_CP_TPI"))) tpi; @@ -492,7 +478,6 @@ union lang_tree_node GTY((desc ("cp_tree_node_structure (&%h)"), struct tree_overload GTY ((tag ("TS_CP_OVERLOAD"))) overload; struct tree_baselink GTY ((tag ("TS_CP_BASELINK"))) baselink; struct tree_wrapper GTY ((tag ("TS_CP_WRAPPER"))) wrapper; - struct tree_srcloc GTY ((tag ("TS_CP_SRCLOC"))) srcloc; struct tree_default_arg GTY ((tag ("TS_CP_DEFAULT_ARG"))) default_arg; struct lang_identifier GTY ((tag ("TS_CP_IDENTIFIER"))) identifier; }; @@ -4212,7 +4197,6 @@ extern tree decl_namespace_context (tree); extern tree lvalue_type (tree); extern tree error_type (tree); extern tree build_zc_wrapper (struct z_candidate *); -extern tree build_srcloc_here (void); extern int varargs_function_p (tree); extern int really_overloaded_fn (tree); extern int cp_tree_equal (tree, tree); |