diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-11-19 19:23:06 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-11-19 19:23:06 +0000 |
commit | 10fdd6e94f3d0c6b9da1bf82651ec06171d0c7d3 (patch) | |
tree | b461473cf577eda9fadf4e1190832b520ea2460e /gcc/context.h | |
parent | a4fe9e9923db7931411e3bbf86892245f3bfb4e2 (diff) | |
download | gcc-10fdd6e94f3d0c6b9da1bf82651ec06171d0c7d3.tar.gz |
PR jit/63854: Fix memory leaks within context/pass_manager/dump_manager
gcc/ChangeLog:
PR jit/63854
* config/alpha/alpha.c (alpha_option_override): Remove static from
"handle_trap_shadows_info" and "align_insns_info".
* config/i386/i386.c (ix86_option_override): Likewise for
"insert_vzeroupper_info".
* config/rl78/rl78.c (rl78_asm_file_start): Likewise for
"rl78_devirt_info" and "rl78_move_elim_info".
* config/rs6000/rs6000.c (rs6000_option_override): Likewise for
"analyze_swaps_info".
* context.c (gcc::context::~context): New.
* context.h (gcc::context::~context): New.
* dumpfile.c (dump_files): Add "false" initializers for new field
"owns_strings".
(gcc::dump_manager::~dump_manager): New.
(gcc::dump_manager::dump_register): Add param "take_ownership".
* dumpfile.h (struct dump_file_info): Add field "owns_strings".
(gcc::dump_manager::~dump_manager): New.
(gcc::dump_manager::dump_register): Add param "take_ownership".
* pass_manager.h (gcc::pass_manager::operator delete): New.
(gcc::pass_manager::~pass_manager): New.
* passes.c (pass_manager::register_one_dump_file): Pass "true" to
new "owns_strings" argument to dump_register.
(pass_manager::operator delete): New.
(delete_pass_tree): New function.
(pass_manager::~pass_manager): New.
* statistics.c (statistics_early_init): Pass "false" to
new "owns_strings" argument to dump_register.
* toplev.c (toplev::finalize): Clean up the context and thus the
things it owns.
From-SVN: r217793
Diffstat (limited to 'gcc/context.h')
-rw-r--r-- | gcc/context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/context.h b/gcc/context.h index 689ae5ad187..2bf28a75dad 100644 --- a/gcc/context.h +++ b/gcc/context.h @@ -32,6 +32,7 @@ class context { public: context (); + ~context (); /* The flag shows if there are symbols to be streamed for offloading. */ bool have_offload; |