From 86785830c3d253af451018ac69278bf6ba2e8fd6 Mon Sep 17 00:00:00 2001 From: Artjoms Sinkarovs Date: Thu, 6 Oct 2011 01:57:27 +0000 Subject: Fix bconstp-3.c failure in PR50607. From-SVN: r179588 --- gcc/c-tree.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gcc/c-tree.h') diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 1948507..0e46525 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -130,6 +130,22 @@ struct c_expr tree original_type; }; +/* Type alias for struct c_expr. This allows to use the structure + inside the VEC types. */ +typedef struct c_expr c_expr_t; + +/* A varray of c_expr_t. */ +DEF_VEC_O (c_expr_t); +DEF_VEC_ALLOC_O (c_expr_t, gc); +DEF_VEC_ALLOC_O (c_expr_t, heap); + +/* Append a new c_expr_t element to V. */ +#define C_EXPR_APPEND(V, ELEM) \ + do { \ + c_expr_t *__elem_p = VEC_safe_push (c_expr_t, gc, V, NULL); \ + *__elem_p = (ELEM); \ + } while (0) + /* A kind of type specifier. Note that this information is currently only used to distinguish tag definitions, tag references and typeof uses. */ -- cgit v1.1