From 28238567cddb77128e6f62cb3a1b6cf70b3ee41b Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Mon, 12 Feb 1996 12:03:24 -0800 Subject: [PATCH] Changes to distinguish typedef from original type in debug output. * tree.c (copy_node): Zero out type.symtab union. From-SVN: r11218 --- gcc/tree.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gcc/tree.c b/gcc/tree.c index 4533294af60..a5961c0b867 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -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); -- 2.30.2