This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH cp/tree.c - don't set TREE_COMPLEXITY from input_line


These lines that set TREE_COMPLEXITY from input_line
seem suspect.  They were updated to use input_line
instead of lineno by 'nathan' on 01-May-03, but that
just updates code that goes back to revision 1.1.

Time to get rid of them?
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/
	* tree.c:  Don't set TREE_COMPLEXITY from input_line.

Index: tree.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/tree.c,v
retrieving revision 1.383
diff -u -p -r1.383 tree.c
--- tree.c	28 Jun 2004 10:34:42 -0000	1.383
+++ tree.c	29 Jun 2004 19:23:26 -0000
@@ -1294,7 +1294,6 @@ build_min_nt (enum tree_code code, ...)
 
   t = make_node (code);
   length = TREE_CODE_LENGTH (code);
-  TREE_COMPLEXITY (t) = input_line;
 
   for (i = 0; i < length; i++)
     {
@@ -1321,7 +1320,6 @@ build_min (enum tree_code code, tree tt,
   t = make_node (code);
   length = TREE_CODE_LENGTH (code);
   TREE_TYPE (t) = tt;
-  TREE_COMPLEXITY (t) = input_line;
 
   for (i = 0; i < length; i++)
     {
@@ -1352,7 +1350,6 @@ build_min_non_dep (enum tree_code code, 
   t = make_node (code);
   length = TREE_CODE_LENGTH (code);
   TREE_TYPE (t) = TREE_TYPE (non_dep);
-  TREE_COMPLEXITY (t) = input_line;
   TREE_SIDE_EFFECTS (t) = TREE_SIDE_EFFECTS (non_dep);
 
   for (i = 0; i < length; i++)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]