OSDN Git Service

* doc/c-tree.texi: Document new operands for ARRAY_REF and
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Sep 2004 21:22:24 +0000 (21:22 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Sep 2004 21:22:24 +0000 (21:22 +0000)
COMPONENT_REF.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86932 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 04d4fc4..653d137 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * doc/c-tree.texi: Document new operands for ARRAY_REF and
+       COMPONENT_REF.
+
 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
 
        * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
index f9509e4..6295d0e 100644 (file)
@@ -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