aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-03-26 10:08:47 +0000
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>2016-03-26 10:08:47 +0000
commitf7f32acd86618f7f563196be60699279e3dfe864 (patch)
tree50bbbd1cb0189ef44bd2e9cb0de46baee865e72b
parentf860c7fc74c317b94f6a0f7c61c541393d29ee0c (diff)
downloadgcc-f7f32acd86618f7f563196be60699279e3dfe864.zip
gcc-f7f32acd86618f7f563196be60699279e3dfe864.tar.gz
gcc-f7f32acd86618f7f563196be60699279e3dfe864.tar.bz2
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
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/ipa-inline-transform.c3
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index af2bda6..f02e3d8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/ipa-inline-transform.c b/gcc/ipa-inline-transform.c
index 5dc0b5a..f966fb0 100644
--- a/gcc/ipa-inline-transform.c
+++ b/gcc/ipa-inline-transform.c
@@ -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",