diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2004-12-16 14:17:24 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2004-12-16 14:17:24 +0000 |
commit | fe8e69bb7b86f34a1f2996977fafb357772a0640 (patch) | |
tree | 53db8e8742fd6083ded1a9510cd9982af561403a /gcc/doc/c-tree.texi | |
parent | b75d6babbcf1a4d0fa1f358f52015020ffa688d1 (diff) | |
download | gcc-fe8e69bb7b86f34a1f2996977fafb357772a0640.zip gcc-fe8e69bb7b86f34a1f2996977fafb357772a0640.tar.gz gcc-fe8e69bb7b86f34a1f2996977fafb357772a0640.tar.bz2 |
* doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
From-SVN: r92263
Diffstat (limited to 'gcc/doc/c-tree.texi')
-rw-r--r-- | gcc/doc/c-tree.texi | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gcc/doc/c-tree.texi b/gcc/doc/c-tree.texi index 3dc7f71..9f4e649 100644 --- a/gcc/doc/c-tree.texi +++ b/gcc/doc/c-tree.texi @@ -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 |