* doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
authorNathan Sidwell <nathan@codesourcery.com>
Thu, 16 Dec 2004 14:17:24 +0000 (14:17 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 16 Dec 2004 14:17:24 +0000 (14:17 +0000)
From-SVN: r92263

gcc/ChangeLog
gcc/doc/c-tree.texi

index b857cce14b21e5a3545008bdd4ae054ed42a3973..deba4c745dd06479e84285d62c238f347280d586 100644 (file)
@@ -1,3 +1,7 @@
+2004-12-16  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
+
 2004-12-16  Mark Dettinger  <dettinge@de.ibm.com>
 
        * config/s390/s390.c (struct processor_costs): Two new fields:
 
 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
 
+       * doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
+
        * tree.def (SET_TYPE): Remove.
        (CONSTRUCTOR): Update description.
        * builtins.c (type_to_class) Remove SET_TYPE case.
index 3dc7f71a109dec5a53cdef6ef4b0be4c50e3f6ba..9f4e64977c1860b9f39a32220b984b2d5b5122d2 100644 (file)
@@ -2273,11 +2273,14 @@ expression used to initialize that field.
 
 If the @code{TREE_TYPE} of the @code{CONSTRUCTOR} is an
 @code{ARRAY_TYPE}, then the @code{TREE_PURPOSE} of each element in the
-@code{TREE_LIST} will be an @code{INTEGER_CST}.  This constant indicates
-which element of the array (indexed from zero) is being assigned to;
-again, the @code{TREE_VALUE} is the corresponding initializer.  If the
-@code{TREE_PURPOSE} is @code{NULL_TREE}, then the initializer is for the
-next available array element.
+@code{TREE_LIST} will be an @code{INTEGER_CST} or a @code{RANGE_EXPR} of
+two @code{INTEGER_CST}s.  A single @code{INTEGER_CST} indicates which
+element of the array (indexed from zero) is being assigned to.  A
+@code{RANGE_EXPR} indicates an inclusive range of elements to
+initialize.  In both cases the @code{TREE_VALUE} is the corresponding
+initializer.  It is re-evaluated for each element of a
+@code{RANGE_EXPR}.  If the @code{TREE_PURPOSE} is @code{NULL_TREE}, then
+the initializer is for the next available array element.
 
 In the front end, you should not depend on the fields appearing in any
 particular order.  However, in the middle end, fields must appear in