diff options
Diffstat (limited to 'gcc/ada/gcc-interface/gigi.h')
-rw-r--r-- | gcc/ada/gcc-interface/gigi.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ada/gcc-interface/gigi.h b/gcc/ada/gcc-interface/gigi.h index 692ef44..1b55ec5 100644 --- a/gcc/ada/gcc-interface/gigi.h +++ b/gcc/ada/gcc-interface/gigi.h @@ -1026,6 +1026,9 @@ extern Entity_Id get_debug_scope (Node_Id gnat_node, bool *is_subprogram); should be synchronized with Exp_Dbug.Debug_Renaming_Declaration. */ extern bool can_materialize_object_renaming_p (Node_Id expr); +/* Return the size of TYPE, which must be a positive power of 2. */ +extern unsigned int resolve_atomic_size (tree type); + #ifdef __cplusplus extern "C" { #endif @@ -1223,3 +1226,11 @@ operand_type (tree expr) { return TREE_TYPE (TREE_OPERAND (expr, 0)); } + +/* Return the third value of a list. */ + +static inline tree +list_third (tree list) +{ + return TREE_VALUE (TREE_CHAIN (TREE_CHAIN (list))); +} |