re PR ipa/70366 (chromium fails to build with LTO due to segfault in ipa-inline-transform.c:inline_call)

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().


Co-Authored-By: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>

From-SVN: r234490
This commit is contained in:
Richard Biener 2016-03-26 10:08:47 +00:00 committed by Prathamesh Kulkarni
parent f860c7fc74
commit f7f32acd86
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,12 @@
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

View File

@ -329,8 +329,7 @@ inline_call (struct cgraph_edge *e, bool update_original,
{
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",