OSDN Git Service

* tree.c (copy_node): Oops. That would be copy not zero
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Jan 1999 20:05:18 +0000 (20:05 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Jan 1999 20:05:18 +0000 (20:05 +0000)
        in that last change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24603 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree.c

index 6e510aa..c3b1aff 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 88c880e..7425b72 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)