OSDN Git Service

Changes to distinguish typedef from original type in debug output.
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Feb 1996 20:03:24 +0000 (20:03 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Feb 1996 20:03:24 +0000 (20:03 +0000)
* tree.c (copy_node):  Zero out type.symtab union.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11218 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/tree.c

index 4533294..a5961c0 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);