aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/c-tree.texi
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2004-09-01 21:22:24 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2004-09-01 17:22:24 -0400
commit78ad8fbec4283d9e9603025dfa0929bf0700e26a (patch)
tree4da30805764537a31c367ed48ce26a41ae765da8 /gcc/doc/c-tree.texi
parent0e6928d853c6c6a016b31b765ebafce7acbbc65e (diff)
downloadgcc-78ad8fbec4283d9e9603025dfa0929bf0700e26a.zip
gcc-78ad8fbec4283d9e9603025dfa0929bf0700e26a.tar.gz
gcc-78ad8fbec4283d9e9603025dfa0929bf0700e26a.tar.bz2
c-tree.texi: Document new operands for ARRAY_REF and COMPONENT_REF.
* doc/c-tree.texi: Document new operands for ARRAY_REF and COMPONENT_REF. From-SVN: r86932
Diffstat (limited to 'gcc/doc/c-tree.texi')
-rw-r--r--gcc/doc/c-tree.texi9
1 files changed, 7 insertions, 2 deletions
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