tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION and TS_TARGET_OPTION...
authorRichard Biener <rguenther@suse.de>
Thu, 12 Jan 2017 08:13:43 +0000 (08:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 12 Jan 2017 08:13:43 +0000 (08:13 +0000)
2017-01-12  Richard Biener  <rguenther@suse.de>

* tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
and TS_TARGET_OPTION directly derive from TS_BASE.
* tree-core.h (tree_optimization_option): Derive from tree_base.
(tree_target_option): Likewise.

From-SVN: r244349

gcc/ChangeLog
gcc/tree-core.h
gcc/tree.c

index c9ac837adcb122d2b5406a188ace9ad8c7623900..20da95331ea5741a4c3854e51bee10f287b9b24f 100644 (file)
@@ -1,3 +1,10 @@
+2017-01-12  Richard Biener  <rguenther@suse.de>
+
+       * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
+       and TS_TARGET_OPTION directly derive from TS_BASE.
+       * tree-core.h (tree_optimization_option): Derive from tree_base.
+       (tree_target_option): Likewise.
+
 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.c (memory_address_length): Increase len
index 37a52c34f2636866d3380c1ce29ced95e125fc43..b7f8b074156af92c9534e6d5fcbfb0d11135a623 100644 (file)
@@ -1794,7 +1794,7 @@ struct GTY(()) tree_statement_list
 /* Optimization options used by a function.  */
 
 struct GTY(()) tree_optimization_option {
-  struct tree_common common;
+  struct tree_base base;
 
   /* The optimization options used by the user.  */
   struct cl_optimization *opts;
@@ -1815,7 +1815,7 @@ struct GTY(()) target_globals;
 /* Target options used by a function.  */
 
 struct GTY(()) tree_target_option {
-  struct tree_common common;
+  struct tree_base base;
 
   /* Target globals for the corresponding target option.  */
   struct target_globals *globals;
index f222d3f2d02768cb2a2bfa898367a351e3fb837a..cffa36d7466e50351fd2fd75c35a6260c5f2d2bd 100644 (file)
@@ -508,6 +508,8 @@ initialize_tree_contains_struct (void)
        {
        case TS_TYPED:
        case TS_BLOCK:
+       case TS_OPTIMIZATION:
+       case TS_TARGET_OPTION:
          MARK_TS_BASE (code);
          break;
 
@@ -532,8 +534,6 @@ initialize_tree_contains_struct (void)
        case TS_VEC:
        case TS_BINFO:
        case TS_OMP_CLAUSE:
-       case TS_OPTIMIZATION:
-       case TS_TARGET_OPTION:
          MARK_TS_COMMON (code);
          break;