From ef9d56f8acf5f46e30d46836095fb920759a2084 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 12 Jan 2017 08:13:43 +0000 Subject: [PATCH] tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION and TS_TARGET_OPTION directly derive from TS_BASE. 2017-01-12 Richard Biener * 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 | 7 +++++++ gcc/tree-core.h | 4 ++-- gcc/tree.c | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c9ac837adcb..20da95331ea 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-01-12 Richard Biener + + * 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 * config/i386/i386.c (memory_address_length): Increase len diff --git a/gcc/tree-core.h b/gcc/tree-core.h index 37a52c34f26..b7f8b074156 100644 --- a/gcc/tree-core.h +++ b/gcc/tree-core.h @@ -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; diff --git a/gcc/tree.c b/gcc/tree.c index f222d3f2d02..cffa36d7466 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -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; -- 2.30.2