From 78ad8fbec4283d9e9603025dfa0929bf0700e26a Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 1 Sep 2004 21:22:24 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/doc/c-tree.texi | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 04d4fc45a11..653d1377964 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 f9509e44c6e..6295d0e627a 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 -- 2.30.2