diff options
author | Bernd Schmidt <bernds@cygnus.co.uk> | 1999-09-06 14:29:19 +0000 |
---|---|---|
committer | Bernd Schmidt <crux@gcc.gnu.org> | 1999-09-06 14:29:19 +0000 |
commit | 2e28f042c025317bc5c73b736cb0bd8e62f6ac60 (patch) | |
tree | abccc2e1ef82765600197238efd9b21b87094f43 /gcc | |
parent | 421cba926889ba3e5573b22834780eee5132ace1 (diff) | |
download | gcc-2e28f042c025317bc5c73b736cb0bd8e62f6ac60.zip gcc-2e28f042c025317bc5c73b736cb0bd8e62f6ac60.tar.gz gcc-2e28f042c025317bc5c73b736cb0bd8e62f6ac60.tar.bz2 |
copy_node should copy the node
From-SVN: r29142
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/tree.c | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0075f72..12bb4f5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Mon Sep 6 15:26:23 1999 Bernd Schmidt <bernds@cygnus.co.uk> + + * tree.c (copy_node): Copy node contents also if doing GC. + Mon Sep 6 08:42:06 1999 Alexandre Oliva <oliva@dcc.unicamp.br> * collect2.c (scan_libraries): Fix double-thinko :-). @@ -1140,10 +1140,8 @@ copy_node (node) if (ggc_p) t = ggc_alloc_tree (length); else - { - t = (tree) obstack_alloc (current_obstack, length); - memcpy (t, node, length); - } + t = (tree) obstack_alloc (current_obstack, 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) |