* tree.h (TYPE_ARRAY_MAX_SIZE): New macro (used by Chill).
authorPer Bothner <bothner@gcc.gnu.org>
Fri, 29 Dec 1995 19:14:11 +0000 (11:14 -0800)
committerPer Bothner <bothner@gcc.gnu.org>
Fri, 29 Dec 1995 19:14:11 +0000 (11:14 -0800)
From-SVN: r10898

gcc/tree.h

index d00e96b0f83885f0a5e1470b5a60005b5b31976c..54c40238fc75ff122f37c73590317f87f2bfe889 100644 (file)
@@ -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)