2016-03-26 Richard Biener <rguenther@suse.de>
authorprathamesh3492 <prathamesh3492@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Mar 2016 10:08:47 +0000 (10:08 +0000)
committerprathamesh3492 <prathamesh3492@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Mar 2016 10:08:47 +0000 (10:08 +0000)
            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

gcc/ChangeLog
gcc/ipa-inline-transform.c

index af2bda6..f02e3d8 100644 (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
index 5dc0b5a..f966fb0 100644 (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",