Commit fe8e69bb by Nathan Sidwell Committed by Nathan Sidwell

* doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.

From-SVN: r92263
parent b75d6bab
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> 2004-12-16 Mark Dettinger <dettinge@de.ibm.com>
* config/s390/s390.c (struct processor_costs): Two new fields: * config/s390/s390.c (struct processor_costs): Two new fields:
...@@ -705,6 +709,8 @@ ...@@ -705,6 +709,8 @@
2004-12-09 Nathan Sidwell <nathan@codesourcery.com> 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
* doc/c-tree.texi (CONSTRUCTOR): Mention RANGE_EXPRs.
* tree.def (SET_TYPE): Remove. * tree.def (SET_TYPE): Remove.
(CONSTRUCTOR): Update description. (CONSTRUCTOR): Update description.
* builtins.c (type_to_class) Remove SET_TYPE case. * builtins.c (type_to_class) Remove SET_TYPE case.
......
...@@ -2273,11 +2273,14 @@ expression used to initialize that field. ...@@ -2273,11 +2273,14 @@ expression used to initialize that field.
If the @code{TREE_TYPE} of the @code{CONSTRUCTOR} is an 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{ARRAY_TYPE}, then the @code{TREE_PURPOSE} of each element in the
@code{TREE_LIST} will be an @code{INTEGER_CST}. This constant indicates @code{TREE_LIST} will be an @code{INTEGER_CST} or a @code{RANGE_EXPR} of
which element of the array (indexed from zero) is being assigned to; two @code{INTEGER_CST}s. A single @code{INTEGER_CST} indicates which
again, the @code{TREE_VALUE} is the corresponding initializer. If the element of the array (indexed from zero) is being assigned to. A
@code{TREE_PURPOSE} is @code{NULL_TREE}, then the initializer is for the @code{RANGE_EXPR} indicates an inclusive range of elements to
next available array element. 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 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 particular order. However, in the middle end, fields must appear in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment