diff options
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -907,7 +907,8 @@ extern void omp_clause_range_check_failed (const_tree, const char *, int, #endif -#define TREE_BLOCK(NODE) *(tree_block (NODE)) +#define TREE_BLOCK(NODE) (tree_block (NODE)) +#define TREE_SET_BLOCK(T, B) (tree_set_block ((T), (B))) #include "tree-check.h" @@ -1611,7 +1612,7 @@ struct GTY(()) tree_constructor { #define EXPR_LOCATION(NODE) \ (CAN_HAVE_LOCATION_P ((NODE)) ? (NODE)->exp.locus : UNKNOWN_LOCATION) #define SET_EXPR_LOCATION(NODE, LOCUS) EXPR_CHECK ((NODE))->exp.locus = (LOCUS) -#define EXPR_HAS_LOCATION(NODE) (EXPR_LOCATION (NODE) != UNKNOWN_LOCATION) +#define EXPR_HAS_LOCATION(NODE) (!IS_UNKNOWN_LOCATION (EXPR_LOCATION (NODE))) /* The location to be used in a diagnostic about this expression. Do not use this macro if the location will be assigned to other expressions. */ #define EXPR_LOC_OR_HERE(NODE) (EXPR_HAS_LOCATION (NODE) ? (NODE)->exp.locus : input_location) @@ -1790,7 +1791,7 @@ extern void protected_set_expr_location (tree, location_t); OMP_CLAUSE_PRIVATE, \ OMP_CLAUSE_COPYPRIVATE), 0) #define OMP_CLAUSE_HAS_LOCATION(NODE) \ - ((OMP_CLAUSE_CHECK (NODE))->omp_clause.locus != UNKNOWN_LOCATION) + (!IS_UNKNOWN_LOCATION ((OMP_CLAUSE_CHECK (NODE))->omp_clause.locus)) #define OMP_CLAUSE_LOCATION(NODE) (OMP_CLAUSE_CHECK (NODE))->omp_clause.locus /* True on an OMP_SECTION statement that was the last lexical member. @@ -1881,7 +1882,6 @@ enum omp_clause_default_kind struct GTY(()) tree_exp { struct tree_typed typed; location_t locus; - tree block; tree GTY ((special ("tree_exp"), desc ("TREE_CODE ((tree) &%0)"))) operands[1]; @@ -5535,7 +5535,7 @@ function_args_iter_next (function_args_iterator *i) static inline bool inlined_function_outer_scope_p (const_tree block) { - return BLOCK_SOURCE_LOCATION (block) != UNKNOWN_LOCATION; + return !IS_UNKNOWN_LOCATION (BLOCK_SOURCE_LOCATION (block)); } /* Loop over all function arguments of FNTYPE. In each iteration, PTR is set @@ -5910,7 +5910,8 @@ extern bool subrange_type_for_debug_p (const_tree, tree *, tree *); extern HOST_WIDE_INT int_cst_value (const_tree); extern HOST_WIDEST_INT widest_int_cst_value (const_tree); -extern tree *tree_block (tree); +extern tree tree_block (tree); +extern void tree_set_block (tree, tree); extern location_t *block_nonartificial_location (tree); extern location_t tree_nonartificial_location (tree); |