summaryrefslogtreecommitdiff
path: root/gcc/tree.def
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1998-04-08 14:03:48 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1998-04-08 14:03:48 +0000
commitdae7d8ad0370268c616e6d5a4bf8c2fd745735db (patch)
treeda1bfbbe113dd95c4e32fc4661d73298fc0876a6 /gcc/tree.def
parentb4e1922b7ff51a7d1a08a3c3c3644827bf23e52f (diff)
downloadgcc-dae7d8ad0370268c616e6d5a4bf8c2fd745735db.tar.gz
d
Fri Apr 3 17:02:13 1998 Alexandre Petit-Bianco <apbianco@cygnus.com> * tree.def (EXPR_WITH_FILE_LOCATION): New tree node definition. * tree.h (EXPR_WFL_{NODE,FILENAME,FILENAME_NODE,LINENO, COLNO,LINECOL,SET_LINECOL,EMIT_LINE_NOTE}): New macros. (build_expr_wfl): New prototype declaration. * tree.c (build_expr_wfl): New function, to build EXPR_WITH_FILE_LOCATION nodes. (copy_node): Don't zero TREE_CHAIN if copying a EXPR_WITH_FILE_LOCATION node. * print-tree.c (print_node): Handle EXPR_WITH_FILE_LOCATION. * expr.c (expand_expr): Handle EXPR_WITH_FILE_LOCATION. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19049 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.def')
-rw-r--r--gcc/tree.def5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree.def b/gcc/tree.def
index 5102c2c1d6a..292a7ea27f2 100644
--- a/gcc/tree.def
+++ b/gcc/tree.def
@@ -739,6 +739,11 @@ DEFTREECODE (EXIT_EXPR, "exit_expr", 's', 1)
The type should be void and the value should be ignored. */
DEFTREECODE (LOOP_EXPR, "loop_expr", 's', 1)
+/* Used to represent a tree node, such as IDENTIFIER_NODE or an EXPR
+ node, adding several location information: a file name, a line
+ number and column number. It is expanded as the node it refers to
+ and can be considered a no-op "conversion" with an annotation. */
+DEFTREECODE (EXPR_WITH_FILE_LOCATION, "expr_with_file_location", '1', 2)
/*
Local variables:
mode:c