diff --git a/gcc/tree.c b/gcc/tree.c index 142254489a6..98c06bdfab1 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -981,7 +981,7 @@ copy_node (node) ((int *) t)[i] = ((int *) node)[i]; /* Clear any extra bytes. */ for (i = length / sizeof (int) * sizeof (int); i < length; i++) - ((char *) t)[i] = 0; + ((char *) t)[i] = ((char *) node)[i]; TREE_CHAIN (t) = 0;