Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
PR ipa/70366
* ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
instead of
TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
as 2nd argument to cl_optimization_restore().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234490
138bc75d-0d04-0410-961f-
82ee72b054a4
+2016-03-26 Richard Biener <rguenther@suse.de>
+ Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+
+ PR ipa/70366
+ * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
+ instead of
+ TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
+ as 2nd argument to cl_optimization_restore().
+
2016-03-25 Richard Henderson <rth@redhat.com>
PR target/70120
{
struct gcc_options opts = global_options;
- cl_optimization_restore (&opts,
- TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl)));
+ cl_optimization_restore (&opts, opts_for_fn (to->decl));
opts.x_flag_strict_aliasing = false;
if (dump_file)
fprintf (dump_file, "Dropping flag_strict_aliasing on %s:%i\n",