aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-12-09 18:59:30 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-12-09 18:59:30 +0000
commit1e54d32b0524638e375a871ef3cb6b8897ce203c (patch)
tree869fd5404f4b2f8d4cc66f05a47d800ccfb74982 /gcc/tree.c
parentc97e511d3174ec7aef16040f5325c6d14fb36f48 (diff)
downloadgcc-1e54d32b0524638e375a871ef3cb6b8897ce203c.zip
gcc-1e54d32b0524638e375a871ef3cb6b8897ce203c.tar.gz
gcc-1e54d32b0524638e375a871ef3cb6b8897ce203c.tar.bz2
tree.c (copy_node): Do zero the TREE_CHAIN, even for an EXPR_WITH_FILE_LOCATION.
* tree.c (copy_node): Do zero the TREE_CHAIN, even for an EXPR_WITH_FILE_LOCATION. From-SVN: r30848
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 1ec2976..37a8654 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -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')