summaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-12-29 19:14:11 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-12-29 19:14:11 +0000
commit255218ff6f9099379d8bb1325c95dce9357aa452 (patch)
tree279234a517dc27e817b00c2dc1c455c19a32704d /gcc/tree.h
parent3ff448cacaebeddce5a5d8dd143b36e8b6e4db1e (diff)
downloadgcc-255218ff6f9099379d8bb1325c95dce9357aa452.tar.gz
* tree.h (TYPE_ARRAY_MAX_SIZE): New macro (used by Chill).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10898 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index d00e96b0f83..54c40238fc7 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -621,6 +621,10 @@ struct tree_block
If set in a SET_TYPE, indicates a bitstring type. */
#define TYPE_STRING_FLAG(NODE) ((NODE)->type.string_flag)
+/* If non-NULL, this is a upper bound of the size (in bytes) of an
+ object of the given ARRAY_TYPE. This allows temporaries to be allocated. */
+#define TYPE_ARRAY_MAX_SIZE(ARRAY_TYPE) TYPE_MAX_VALUE (ARRAY_TYPE)
+
/* Indicates that objects of this type must be initialized by calling a
function when they are created. */
#define TYPE_NEEDS_CONSTRUCTING(NODE) ((NODE)->type.needs_constructing_flag)