diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-11-19 19:08:29 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-11-19 19:08:29 +0000 |
commit | 0ef443cf01de9153f66d9327784c6137d387dade (patch) | |
tree | 3e05b6e27cfe2411e105ee9403deb3eeafd30ef0 /gcc/opts.h | |
parent | 3bdf0a9ba51c25ab13d5f37e311d77c12aca55ae (diff) | |
download | gcc-0ef443cf01de9153f66d9327784c6137d387dade.zip gcc-0ef443cf01de9153f66d9327784c6137d387dade.tar.gz gcc-0ef443cf01de9153f66d9327784c6137d387dade.tar.bz2 |
PR jit/63854: Fix memory leak within gcc_options
gcc/ChangeLog:
PR jit/63854
* opts.c (finalize_options_struct): New.
* opts.h (finalize_options_struct): New.
* toplev.c (toplev::finalize): Call finalize_options_struct
on global_options and global_options_set.
From-SVN: r217791
Diffstat (limited to 'gcc/opts.h')
-rw-r--r-- | gcc/opts.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -325,6 +325,7 @@ extern void decode_cmdline_options_to_array (unsigned int argc, extern void init_options_once (void); extern void init_options_struct (struct gcc_options *opts, struct gcc_options *opts_set); +extern void finalize_options_struct (struct gcc_options *opts); extern void decode_cmdline_options_to_array_default_mask (unsigned int argc, const char **argv, struct cl_decoded_option **decoded_options, |