tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION to optimizat...
authorJan Hubicka <hubicka@ucw.cz>
Mon, 17 Nov 2014 19:35:57 +0000 (20:35 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 17 Nov 2014 19:35:57 +0000 (19:35 +0000)
* tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION
to optimization_default_node.

From-SVN: r217671

gcc/ChangeLog
gcc/tree.c

index 4bc782694e1fabb7f5853a6eb1c82f93e1e9cd05..5e2e1a19f798dbb422d37a422406b8bf0d868399 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
+
+       * tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION
+       to optimization_default_node.
+
 2014-11-17  Jan Hubicka  <hubicka@ucw.cz>
 
        * cgraphunit.c (analyze_functions): Use opt_for_fn.
index 498d52e648c1966c12e28ff0e01e40a06436624d..3d1d6370fb0fd3cba2cc0874c4f89a83f11c2cea 100644 (file)
@@ -5118,6 +5118,9 @@ free_lang_data_in_decl (tree decl)
          if (!DECL_FUNCTION_SPECIFIC_TARGET (decl))
            DECL_FUNCTION_SPECIFIC_TARGET (decl)
              = target_option_default_node;
+         if (!DECL_FUNCTION_SPECIFIC_OPTIMIZATION (decl))
+           DECL_FUNCTION_SPECIFIC_OPTIMIZATION (decl)
+             = optimization_default_node;
        }
 
       /* DECL_SAVED_TREE holds the GENERIC representation for DECL.