Changes to distinguish typedef from original type in debug output.
authorPer Bothner <bothner@gcc.gnu.org>
Mon, 12 Feb 1996 20:03:24 +0000 (12:03 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Mon, 12 Feb 1996 20:03:24 +0000 (12:03 -0800)
* tree.c (copy_node):  Zero out type.symtab union.

From-SVN: r11218

gcc/tree.c

index 4533294af609a51f0974cf3c5270c9cac2c9623f..a5961c0b8679e278ae0dca3e2bd6a89fd706194b 100644 (file)
@@ -1165,6 +1165,14 @@ copy_node (node)
     {
       TYPE_UID (t) = next_type_uid++;
       TYPE_OBSTACK (t) = current_obstack;
+
+      /* The following is so that the debug code for
+        the copy is different from the original type.
+        The two statements usually duplicate each other
+        (because they clear fields of the same union),
+        but the optimizer should catch that. */
+      TYPE_SYMTAB_POINTER (t) = 0;
+      TYPE_SYMTAB_ADDRESS (t) = 0;
     }
 
   TREE_PERMANENT (t) = (current_obstack == &permanent_obstack);