aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2015-11-12 16:50:05 +0100
committerMartin Liska <marxin@gcc.gnu.org>2015-11-12 15:50:05 +0000
commitde5672fcb236d43458b4bbd48313ccd699268a1e (patch)
treed8c21743c5863ddf0f3ca4d381a04732f4ce45b7 /gcc/gcc.c
parent808b6bb7a8a4c30ac6f375ca2f6f0cb72fb3e766 (diff)
downloadgcc-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 8bbf5be..87d1979 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -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++)