tree.c (copy_node): Oops.
authorRichard Henderson <rth@cygnus.com>
Sat, 9 Jan 1999 20:05:18 +0000 (12:05 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 9 Jan 1999 20:05:18 +0000 (12:05 -0800)
        * tree.c (copy_node): Oops.  That would be copy not zero
        in that last change.

From-SVN: r24603

gcc/ChangeLog
gcc/tree.c

index 6e510aa6f70a3feccde681e424ae7ef21401ae7e..c3b1aff8360acb073244454cf471d756f7cf1eaa 100644 (file)
@@ -1,3 +1,8 @@
+Sat Jan  9 20:04:24 1999  Richard Henderson  <rth@cygnus.com>
+
+       * tree.c (copy_node): Oops.  That would be copy not zero
+       in that last change.
+
 Sun Jan 10 15:35:41 1999  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
 
        * config/c4x/c4x.c: Include system.h.
index 88c880ec4c2e8b29ba0f9a062cee1d44e0fcbb95..7425b7240523390d1397551e224fdd943d5e561e 100644 (file)
@@ -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)