Fix big memory leak in ix86_valid_target_attribute_p
authorMartin Liska <mliska@suse.cz>
Thu, 12 Nov 2015 15:50:05 +0000 (16:50 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 12 Nov 2015 15:50:05 +0000 (15:50 +0000)
commitde5672fcb236d43458b4bbd48313ccd699268a1e
treed8c21743c5863ddf0f3ca4d381a04732f4ce45b7
parent808b6bb7a8a4c30ac6f375ca2f6f0cb72fb3e766
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
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/gcc.c
gcc/lto-wrapper.c
gcc/opts.c
gcc/opts.h