From: kenner Date: Wed, 1 Sep 2004 21:22:24 +0000 (+0000) Subject: * doc/c-tree.texi: Document new operands for ARRAY_REF and X-Git-Tag: upstream/4.9.2~68226 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=905bfa9ead6a6984215e0de7291fe9c67c095e30;p=platform%2Fupstream%2Flinaro-gcc.git * doc/c-tree.texi: Document new operands for ARRAY_REF and COMPONENT_REF. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86932 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 04d4fc4..653d137 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-09-01 Richard Kenner + + * doc/c-tree.texi: Document new operands for ARRAY_REF and + COMPONENT_REF. + 2004-09-01 Zdenek Dvorak * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency. diff --git a/gcc/doc/c-tree.texi b/gcc/doc/c-tree.texi index f9509e4..6295d0e 100644 --- a/gcc/doc/c-tree.texi +++ b/gcc/doc/c-tree.texi @@ -2091,7 +2091,10 @@ These nodes represent array accesses. The first operand is the array; the second is the index. To calculate the address of the memory accessed, you must scale the index by the size of the type of the array elements. The type of these expressions must be the type of a component of -the array. +the array. The third and fourth operands are used after gimplification +to represent the lower bound and component size but should not be used +directly; call @code{array_ref_low_bound} and @code{array_ref_element_size} +instead. @item ARRAY_RANGE_REF These nodes represent access to a range (or ``slice'') of an array. The @@ -2166,7 +2169,9 @@ variable is initialized, rather than assigned to subsequently. @item COMPONENT_REF These nodes represent non-static data member accesses. The first operand is the object (rather than a pointer to it); the second operand -is the @code{FIELD_DECL} for the data member. +is the @code{FIELD_DECL} for the data member. The third operand represents +the byte offset of the field, but should not be used directly; call +@code{component_ref_field_offset} instead. @item COMPOUND_EXPR These nodes represent comma-expressions. The first operand is an