copy_node should copy the node
authorBernd Schmidt <bernds@cygnus.co.uk>
Mon, 6 Sep 1999 14:29:19 +0000 (14:29 +0000)
committerBernd Schmidt <crux@gcc.gnu.org>
Mon, 6 Sep 1999 14:29:19 +0000 (14:29 +0000)
From-SVN: r29142

gcc/ChangeLog
gcc/tree.c

index 0075f728297d1f964d864a1fbba96bf8e3bcc65f..12bb4f5eac88e8307122eb93b74c95752e544f5d 100644 (file)
@@ -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 :-).
index 03fc790d2b41c60b206b01865b68e83f154ce2be..47db9b0ee9d68c624363cfcd6b20a3cb99e21c0a 100644 (file)
@@ -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)