From: Richard Henderson Date: Sat, 9 Jan 1999 20:05:18 +0000 (-0800) Subject: tree.c (copy_node): Oops. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2c41b7eac9fb009a0b277bfb72db47605ff29b5;p=gcc.git tree.c (copy_node): Oops. * tree.c (copy_node): Oops. That would be copy not zero in that last change. From-SVN: r24603 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6e510aa6f70..c3b1aff8360 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sat Jan 9 20:04:24 1999 Richard Henderson + + * tree.c (copy_node): Oops. That would be copy not zero + in that last change. + Sun Jan 10 15:35:41 1999 Michael Hayes * config/c4x/c4x.c: Include system.h. diff --git a/gcc/tree.c b/gcc/tree.c index 88c880ec4c2..7425b724052 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -1181,7 +1181,7 @@ copy_node (node) } t = (tree) obstack_alloc (current_obstack, length); - bzero (t, 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)