aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Macleod <amacleod@redhat.com>2016-03-14 19:18:01 +0000
committerAndrew Macleod <amacleod@redhat.com>2016-03-14 19:18:01 +0000
commit17f93cadf1a40a57b8d6afb38abf82a81c2527e7 (patch)
treed3a4441298fba2f31f7219458b51443a30eadfee
parent37f982158c69350b7818167ab97e623e0958065f (diff)
add error_type_node and NULL_TYPE
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ttype-pro@234189 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/tree.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 6538ed1f353..94c721731a9 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -394,6 +394,16 @@ extern void omp_clause_range_check_failed (const_tree, const char *, int,
#endif
#define NULL_TREE (tree) NULL
+#define NULL_TYPE (ttype *)NULL
+
+/* Define the error_* nodes early for the inlined ttype methods. */
+#define error_mark_node global_trees[TI_ERROR_MARK]
+
+/* error_type_node will eventually be distinct from error_mark_node, but
+ for now it must be identical for comparisons to work .
+ #define error_type_node global_types[TPI_ERROR_TYPE] */
+#define error_type_node (reinterpret_cast<ttype *>(error_mark_node))
+
/* Accessor for base structure. */
inline struct tree_base&
@@ -3587,8 +3597,6 @@ tree_operand_check_code (const_tree __t, enum tree_code __code, int __i,
#endif
-#define error_mark_node global_trees[TI_ERROR_MARK]
-
#define intQI_type_node global_trees[TI_INTQI_TYPE]
#define intHI_type_node global_trees[TI_INTHI_TYPE]
#define intSI_type_node global_trees[TI_INTSI_TYPE]