Do not leak SSANAMES in lto streamer
authorJan Hubicka <jh@suse.cz>
Mon, 23 Nov 2020 15:52:36 +0000 (16:52 +0100)
committerJan Hubicka <jh@suse.cz>
Mon, 23 Nov 2020 15:53:25 +0000 (16:53 +0100)
commit54af3008b6f05985d378a48d337d9c70c708ecff
treec31e53f785aa5d8c97068be67ec8e3cce2c9a655
parent204b61b906f2f806eec2f7bb72d4dd79c88d688a
Do not leak SSANAMES in lto streamer

* lto-streamer-in.c (input_cfg): Do not init ssa operands.
(input_function): Do not init tree_ssa and set in_ssa_p.
(input_ssa_names): Do it here.
* tree-ssa.c (init_tree_ssa): Add additional SIZE parameter, default
to 0
* tree-ssanames.c (init_ssanames): Do not round size up to 50, allocate
precisely.
* tree-ssa.h (init_tree_ssa): Update prototype.
gcc/lto-streamer-in.c
gcc/tree-ssa.c
gcc/tree-ssa.h
gcc/tree-ssanames.c