aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.h
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/opts.h
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/opts.h')
-rw-r--r--gcc/opts.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/opts.h b/gcc/opts.h
index 38b3837..2eb2d97 100644
--- a/gcc/opts.h
+++ b/gcc/opts.h
@@ -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,