From bf1e5319c3c6a2e26470ca5e17340fff30b9510e Mon Sep 17 00:00:00 2001
From: Alexandre Petit-Bianco <apbianco@cygnus.com>
Date: Wed, 8 Apr 1998 14:03:48 +0000
Subject: tree.def (EXPR_WITH_FILE_LOCATION): New tree node definition.

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.

From-SVN: r19049
---
 gcc/tree.def | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'gcc/tree.def')

diff --git a/gcc/tree.def b/gcc/tree.def
index 5102c2c..292a7ea 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
-- 
cgit v1.1

