diff options
author | Per Bothner <bothner@gcc.gnu.org> | 1996-02-12 12:03:24 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 1996-02-12 12:03:24 -0800 |
commit | 28238567cddb77128e6f62cb3a1b6cf70b3ee41b (patch) | |
tree | 5af9b3307f3f5cfe61a953520c9fcc329fb08391 /gcc | |
parent | 79afd9061c9323a9b8394ae4470a522233856048 (diff) | |
download | gcc-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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |