diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/tree-core.h | 4 | ||||
-rw-r--r-- | gcc/tree.c | 4 |
3 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c9ac837..20da953 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/tree-core.h b/gcc/tree-core.h index 37a52c3..b7f8b07 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; @@ -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; |