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
This commit is contained in:
Mark Mitchell 1999-12-09 18:59:30 +00:00 committed by Mark Mitchell
parent c97e511d31
commit 1e54d32b05
2 changed files with 6 additions and 3 deletions

View 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

View 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')