aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.def
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2003-04-07 06:03:17 +0000
committerZack Weinberg <zack@gcc.gnu.org>2003-04-07 06:03:17 +0000
commitd78e771d468c7280b95c7dbbafcdd87d69357d80 (patch)
tree85a5a4cad3cfe432c546c4df2134dac37924265c /gcc/c-common.def
parenta9c89a57f64d057fac96a9bbdbcde6ba7656ad55 (diff)
downloadgcc-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/c-common.def')
-rw-r--r--gcc/c-common.def3
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/c-common.def b/gcc/c-common.def
index 802238a..dfdec8c 100644
--- a/gcc/c-common.def
+++ b/gcc/c-common.def
@@ -25,9 +25,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
/* Tree nodes relevant to both C and C++. These were originally in
cp-tree.def in the cp subdir. */
-/* A node to remember a source position. */
-DEFTREECODE (SRCLOC, "srcloc", 'x', 2)
-
DEFTREECODE (SIZEOF_EXPR, "sizeof_expr", '1', 1)
DEFTREECODE (ARROW_EXPR, "arrow_expr", 'e', 1)
DEFTREECODE (ALIGNOF_EXPR, "alignof_expr", '1', 1)