aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorArtjoms Sinkarovs <artyom.shinkaroff@gmail.com>2011-10-06 01:57:27 +0000
committerArtjoms Sinkarovs <tema@gcc.gnu.org>2011-10-06 01:57:27 +0000
commit86785830c3d253af451018ac69278bf6ba2e8fd6 (patch)
tree53a37f41c70f7b3b8839d82647a848425545ca99 /gcc/c-tree.h
parent57d1eadd79297e4642ee402a58690e98850cf649 (diff)
downloadgcc-86785830c3d253af451018ac69278bf6ba2e8fd6.zip
gcc-86785830c3d253af451018ac69278bf6ba2e8fd6.tar.gz
gcc-86785830c3d253af451018ac69278bf6ba2e8fd6.tar.bz2
Fix bconstp-3.c failure in PR50607.
From-SVN: r179588
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h16
1 files changed, 16 insertions, 0 deletions
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. */