aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ch.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2020-09-24 08:28:09 +0200
committerJan Hubicka <jh@suse.cz>2020-09-24 08:28:09 +0200
commitc9da53d6987af5f8ff68b58dd76a9fbc900a6a21 (patch)
treee0bed9ee6fe0d60237cdb71cbae19944289b800a /gcc/tree-ssa-loop-ch.c
parent2d5fb576bdda843da47aea2e025bb5d45e883827 (diff)
downloadgcc-c9da53d6987af5f8ff68b58dd76a9fbc900a6a21.zip
gcc-c9da53d6987af5f8ff68b58dd76a9fbc900a6a21.tar.gz
gcc-c9da53d6987af5f8ff68b58dd76a9fbc900a6a21.tar.bz2
Fix memory allocations in ipa-modref.
Pair ggc_delete with ggc_alloc_no_dtor. I copy same scheme as used by Martin in ipa-fnsummary, that is creating a static member function create_ggc hidding the ugly bits and using it in ipa-modref.c. I also noticed that modref-tree leaks memory on destruction/collapse method and fixed that. Bootstrapped/regtested x86_64-linux. gcc/ChangeLog: 2020-09-24 Jan Hubicka <hubicka@ucw.cz> * ipa-modref-tree.h (modref_base::collapse): Release memory. (modref_tree::create_ggc): New member function. (modref_tree::colapse): Release memory. (modref_tree::~modref_tree): New destructor. * ipa-modref.c (modref_summaries::create_ggc): New function. (analyze_function): Use create_ggc. (modref_summaries::duplicate): Likewise. (read_modref_records): Likewise. (modref_read): Likewise.
Diffstat (limited to 'gcc/tree-ssa-loop-ch.c')
0 files changed, 0 insertions, 0 deletions