diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-03 19:54:18 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-03 19:54:18 +0000 |
commit | 4df870fdeec85907db3dcabf1992cf8b63e1d562 (patch) | |
tree | 03ce7f28fa403515aaa2237e480f2c85c5013a0b /gcc/tree-streamer-out.c | |
parent | dda4f0ece17a96da6fbeddab8326ccd502171fa1 (diff) | |
download | gcc-4df870fdeec85907db3dcabf1992cf8b63e1d562.tar.gz |
* lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
boundaries.
* lto-streamer-out.c (tree_is_indexable): Results decls and
parm decls are not indexable.
(DFS_write_tree_body): Do not follow args and results.
(hash_tree): Likewise.
(output_functions): Rearrange so struct function is needed
only when real body is output; be able to also ouptut abstract
functions; output DECL_ARGUMENTS and DECL_RESULT.
(lto_output): When not in WPA, ale store abstract functions.
(write_symbol): Do not care about RESULT_DECL.
(output_symbol_p): Handle correctly sbtract decls.
* lto-streamer-in.c (input_function): Rearrange so struct
function can be NULL at entry; allow streaming of
functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
* ipa.c (symtab_remove_unreachable_nodes): Silence confused
sanity check during LTO.
* tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
RESULT_DECl and DECL_ARGUMENTS.
* tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
Likewise.
* lto.c (lto_materialize_function): Do not push struct function.
* lto-partition.c (get_symbol_class): Handle abstracts correctly.
(may_need_named_section_p): Even abstract origins may need
named section.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201468 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-streamer-out.c')
-rw-r--r-- | gcc/tree-streamer-out.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/tree-streamer-out.c b/gcc/tree-streamer-out.c index fa50ef5b7ad..692a46aae85 100644 --- a/gcc/tree-streamer-out.c +++ b/gcc/tree-streamer-out.c @@ -606,12 +606,7 @@ static void write_ts_decl_non_common_tree_pointers (struct output_block *ob, tree expr, bool ref_p) { - if (TREE_CODE (expr) == FUNCTION_DECL) - { - streamer_write_chain (ob, DECL_ARGUMENTS (expr), ref_p); - stream_write_tree (ob, DECL_RESULT (expr), ref_p); - } - else if (TREE_CODE (expr) == TYPE_DECL) + if (TREE_CODE (expr) == TYPE_DECL) stream_write_tree (ob, DECL_ORIGINAL_TYPE (expr), ref_p); stream_write_tree (ob, DECL_VINDEX (expr), ref_p); } |