tree.c (copy_node): Do zero the TREE_CHAIN, even for an EXPR_WITH_FILE_LOCATION.
authorMark Mitchell <mark@codesourcery.com>
Thu, 9 Dec 1999 18:59:30 +0000 (18:59 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 9 Dec 1999 18:59:30 +0000 (18:59 +0000)
* tree.c (copy_node): Do zero the TREE_CHAIN, even for an
EXPR_WITH_FILE_LOCATION.

From-SVN: r30848

gcc/ChangeLog
gcc/tree.c

index b3f3f8459aac363379911c9a5ee69a1200fe8b99..e6712ef9f8da77950a694161112a7a42fe7dd2f2 100644 (file)
@@ -1,3 +1,8 @@
+1999-12-09  Mark Mitchell  <mark@codesourcery.com>
+
+       * tree.c (copy_node): Do zero the TREE_CHAIN, even for an
+       EXPR_WITH_FILE_LOCATION.
+
 Thu Dec  9 11:36:24 MET 1999 Jan Hubicka  <hubicka@freesoft.cz>
 
        * i386.md (neg??, abs?f, one_cmpl?i): Use nonimmediate_operand
index 1ec2976ab9d67699277b96491565ff3d893b4f99..37a8654be0a4966184c3969d777dfd3c43a249be 100644 (file)
@@ -1191,9 +1191,7 @@ copy_node (node)
     t = (tree) obstack_alloc (current_obstack, length);
   memcpy (t, node, length);
 
-  /* EXPR_WITH_FILE_LOCATION must keep filename info stored in TREE_CHAIN */
-  if (TREE_CODE (node) != EXPR_WITH_FILE_LOCATION)
-    TREE_CHAIN (t) = 0;
+  TREE_CHAIN (t) = 0;
   TREE_ASM_WRITTEN (t) = 0;
 
   if (TREE_CODE_CLASS (code) == 'd')