This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Add documentation for args in ARRAY_REF and COMPONENT_REF


As requested, since these look like they'll be around for longer than
originally intended ...

2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* doc/c-tree.texi: Document new operands for ARRAY_REF and
	COMPONENT_REF.

*** doc/c-tree.texi	20 Jul 2004 12:26:02 -0000	1.61
--- doc/c-tree.texi	1 Sep 2004 21:19:46 -0000
*************** the second is the index.  To calculate t
*** 2092,2096 ****
  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.
  
  @item ARRAY_RANGE_REF
--- 2092,2099 ----
  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 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
*************** variable is initialized, rather than ass
*** 2167,2171 ****
  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.
  
  @item COMPOUND_EXPR
--- 2170,2176 ----
  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.  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]