diff options
author | Martin Liska <mliska@suse.cz> | 2015-11-12 16:50:05 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2015-11-12 15:50:05 +0000 |
commit | de5672fcb236d43458b4bbd48313ccd699268a1e (patch) | |
tree | d8c21743c5863ddf0f3ca4d381a04732f4ce45b7 /gcc/opts.h | |
parent | 808b6bb7a8a4c30ac6f375ca2f6f0cb72fb3e766 (diff) | |
download | gcc-de5672fcb236d43458b4bbd48313ccd699268a1e.zip gcc-de5672fcb236d43458b4bbd48313ccd699268a1e.tar.gz gcc-de5672fcb236d43458b4bbd48313ccd699268a1e.tar.bz2 |
Fix big memory leak in ix86_valid_target_attribute_p
* config/i386/i386.c (ix86_valid_target_attribute_p):
Finalize options at the of the function.
* gcc.c (driver_get_configure_time_options): Call newly
introduced init_opts_obstack.
* lto-wrapper.c (main): Likewise.
* opts.c (init_opts_obstack): New function.
(init_options_struct): Call newly
introduced init_opts_obstack.
* opts.h (init_options_struct): Declare.
From-SVN: r230264
Diffstat (limited to 'gcc/opts.h')
-rw-r--r-- | gcc/opts.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -323,6 +323,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 init_opts_obstack (void); extern void finalize_options_struct (struct gcc_options *opts); extern void decode_cmdline_options_to_array_default_mask (unsigned int argc, const char **argv, |