aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-01-09 12:05:18 -0800
committerRichard Henderson <rth@gcc.gnu.org>1999-01-09 12:05:18 -0800
commitc2c41b7eac9fb009a0b277bfb72db47605ff29b5 (patch)
treeb2798765db30b8369aedb1483d2c5c5332b50da0
parent1f5080161b23334ca1bac8a7f65f14a69f41b19a (diff)
downloadgcc-c2c41b7eac9fb009a0b277bfb72db47605ff29b5.zip
gcc-c2c41b7eac9fb009a0b277bfb72db47605ff29b5.tar.gz
gcc-c2c41b7eac9fb009a0b277bfb72db47605ff29b5.tar.bz2
tree.c (copy_node): Oops.
* tree.c (copy_node): Oops. That would be copy not zero in that last change. From-SVN: r24603
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6e510aa6..c3b1aff 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/tree.c b/gcc/tree.c
index 88c880e..7425b72 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)