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/gcc.c | |
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/gcc.c')
-rw-r--r-- | gcc/gcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -9915,7 +9915,7 @@ driver_get_configure_time_options (void (*cb) (const char *option, size_t i; obstack_init (&obstack); - gcc_obstack_init (&opts_obstack); + init_opts_obstack (); n_switches = 0; for (i = 0; i < ARRAY_SIZE (option_default_specs); i++) |