diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2018-07-11 18:38:27 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2018-07-11 16:38:27 +0000 |
commit | 69e02b35555e214a8f0c4c026d15b8c67584e208 (patch) | |
tree | 506a543d4b9fe4b4ca59144e91bd850e8686d4c6 /gcc/tree.c | |
parent | f790df6be014576524f55670a136eb622e595377 (diff) | |
download | gcc-69e02b35555e214a8f0c4c026d15b8c67584e208.zip gcc-69e02b35555e214a8f0c4c026d15b8c67584e208.tar.gz gcc-69e02b35555e214a8f0c4c026d15b8c67584e208.tar.bz2 |
lto-streamer-out.c (DFS::DFS_write_tree_body): Do not stream DECL_ORIGINAL_TYPE.
* lto-streamer-out.c (DFS::DFS_write_tree_body): Do not
stream DECL_ORIGINAL_TYPE.
(DFS::DFS_write_tree_body): Drop hack handling local external decls.
(hash_tree): Do not walk DECL_ORIGINAL_TYPE.
* tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
Do not walk original type.
* tree-streamer-out.c (streamer_write_chain): Drop hack handling
external decls.
(write_ts_decl_non_common_tree_pointers): Do not stream
DECL_ORIGINAL_TYPE
* tree.c (free_lang_data_in_decl): Clear DECL_ORIGINAL_TYPE.
(find_decls_types_r): Do not walk DEC_ORIGINAL_TYPE.
From-SVN: r262560
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -5357,6 +5357,7 @@ free_lang_data_in_decl (tree decl) DECL_VISIBILITY (decl) = VISIBILITY_DEFAULT; DECL_VISIBILITY_SPECIFIED (decl) = 0; DECL_INITIAL (decl) = NULL_TREE; + DECL_ORIGINAL_TYPE (decl) = NULL_TREE; } else if (TREE_CODE (decl) == FIELD_DECL) DECL_INITIAL (decl) = NULL_TREE; @@ -5469,10 +5470,6 @@ find_decls_types_r (tree *tp, int *ws, void *data) fld_worklist_push (DECL_ARGUMENTS (t), fld); fld_worklist_push (DECL_RESULT (t), fld); } - else if (TREE_CODE (t) == TYPE_DECL) - { - fld_worklist_push (DECL_ORIGINAL_TYPE (t), fld); - } else if (TREE_CODE (t) == FIELD_DECL) { fld_worklist_push (DECL_FIELD_OFFSET (t), fld); |