Commit 2e28f042 by Bernd Schmidt Committed by Bernd Schmidt

copy_node should copy the node

From-SVN: r29142
parent 421cba92
Mon Sep 6 15:26:23 1999 Bernd Schmidt <bernds@cygnus.co.uk>
* tree.c (copy_node): Copy node contents also if doing GC.
Mon Sep 6 08:42:06 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
* collect2.c (scan_libraries): Fix double-thinko :-).
......
......@@ -1140,10 +1140,8 @@ copy_node (node)
if (ggc_p)
t = ggc_alloc_tree (length);
else
{
t = (tree) obstack_alloc (current_obstack, length);
memcpy (t, node, length);
}
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment