From c1b7a563e061a32a0c8531989ee205e4d2fbb3e6 Mon Sep 17 00:00:00 2001 From: Kirill Yukhin Date: Thu, 23 Oct 2014 11:44:12 +0000 Subject: [PATCH] AVX-512. 81.1/n. Extend `function_code' field `tree_var_decl' structure. gcc/ * tree-core.h (tree_var_decl): Extend `function_code' field by one bit, move `regdecl_flag' field to ... (tree_decl_with_vis): Here. * tree.h (DECL_STATIC_CHAIN): Update struct name. From-SVN: r216590 --- gcc/ChangeLog | 7 +++++++ gcc/tree-core.h | 9 +++++---- gcc/tree.h | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6d8388fdb50..45ec506d647 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-10-23 Kirill Yukhin + + * tree-core.h (tree_var_decl): Extend `function_code' field + by one bit, move `regdecl_flag' field to ... + (tree_decl_with_vis): Here. + * tree.h (DECL_STATIC_CHAIN): Update struct name. + 2014-10-23 Richard Biener * Makefile.in (BUILD_CPPLIB): Add. diff --git a/gcc/tree-core.h b/gcc/tree-core.h index b69312b0c40..30db89360fe 100644 --- a/gcc/tree-core.h +++ b/gcc/tree-core.h @@ -1498,7 +1498,9 @@ struct GTY(()) tree_decl_with_vis { unsigned cxx_destructor : 1; /* Belong to FUNCTION_DECL exclusively. */ unsigned final : 1; - /* 15 unused bits. */ + /* Belong to FUNCTION_DECL exclusively. */ + unsigned regdecl_flag : 1; + /* 14 unused bits. */ }; struct GTY(()) tree_var_decl { @@ -1539,20 +1541,19 @@ struct GTY(()) tree_function_decl { DECL_FUNCTION_CODE. Otherwise unused. ??? The bitfield needs to be able to hold all target function codes as well. */ - ENUM_BITFIELD(built_in_function) function_code : 11; + ENUM_BITFIELD(built_in_function) function_code : 12; ENUM_BITFIELD(built_in_class) built_in_class : 2; unsigned static_ctor_flag : 1; unsigned static_dtor_flag : 1; - unsigned uninlinable : 1; + unsigned uninlinable : 1; unsigned possibly_inlined : 1; unsigned novops_flag : 1; unsigned returns_twice_flag : 1; unsigned malloc_flag : 1; unsigned operator_new_flag : 1; unsigned declared_inline_flag : 1; - unsigned regdecl_flag : 1; unsigned no_inline_warning_flag : 1; unsigned no_instrument_function_entry_exit : 1; diff --git a/gcc/tree.h b/gcc/tree.h index 45f127fd644..2a085c9ba21 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2553,7 +2553,7 @@ extern void decl_fini_priority_insert (tree, priority_type); /* In a FUNCTION_DECL indicates that a static chain is needed. */ #define DECL_STATIC_CHAIN(NODE) \ - (FUNCTION_DECL_CHECK (NODE)->function_decl.regdecl_flag) + (FUNCTION_DECL_CHECK (NODE)->decl_with_vis.regdecl_flag) /* Nonzero for a decl that cgraph has decided should be inlined into at least one call site. It is not meaningful to look at this -- 2.30.2