Do not allocate ggc during streaming.
authorJan Hubicka <hubicka@ucw.cz>
Fri, 11 Oct 2019 08:59:16 +0000 (10:59 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 11 Oct 2019 08:59:16 +0000 (08:59 +0000)
commit1fcf52a6a2208a57e4542e1b830a7ac5cfa216a2
treeef9cac22b1e7b08c43bf2ff06a8714ed61dbcc77
parent05626b02e8d02720771d361677b1d6cc38df9ddc
Do not allocate ggc during streaming.

* gimple-streamer-out.c (output_gimple_stmt): Add explicit function
parameter.
* lto-streamer-out.c: Include tree-dfa.h.
(output_cfg): Do not use cfun.
(lto_prepare_function_for_streaming): New.
(output_function): Do not push cfun; do not initialize loop optimizer.
* lto-streamer.h (lto_prepare_function_for_streaming): Declare.
* passes.c (ipa_write_summaries): Use it.
(ipa_write_optimization_summaries): Do not modify bodies.
* tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
* tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
* tree-ssa-dse.c (pass_dse::execute): Update use of
renumber_gimple_stmt_uids.
* tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.

* lto.c (lto_wpa_write_files): Prepare all bodies for streaming.

From-SVN: r276870
gcc/ChangeLog
gcc/gimple-streamer-out.c
gcc/lto-streamer-out.c
gcc/lto-streamer.h
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/passes.c
gcc/tree-dfa.c
gcc/tree-dfa.h
gcc/tree-ssa-dse.c
gcc/tree-ssa-math-opts.c