aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPer Bothner <bothner@gcc.gnu.org>1996-02-12 12:03:24 -0800
committerPer Bothner <bothner@gcc.gnu.org>1996-02-12 12:03:24 -0800
commit28238567cddb77128e6f62cb3a1b6cf70b3ee41b (patch)
tree5af9b3307f3f5cfe61a953520c9fcc329fb08391 /gcc
parent79afd9061c9323a9b8394ae4470a522233856048 (diff)
downloadgcc-28238567cddb77128e6f62cb3a1b6cf70b3ee41b.zip
gcc-28238567cddb77128e6f62cb3a1b6cf70b3ee41b.tar.gz
gcc-28238567cddb77128e6f62cb3a1b6cf70b3ee41b.tar.bz2
Changes to distinguish typedef from original type in debug output.
* tree.c (copy_node): Zero out type.symtab union. From-SVN: r11218
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 4533294..a5961c0 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);