diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2001-06-04 15:48:16 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-06-04 11:48:16 -0400 |
commit | c940f36d6862730e5ef8576dd48dfc57868b99ab (patch) | |
tree | 58617356b57620790c1be66945da6c5fc589e20e /gcc/doc/c-tree.texi | |
parent | 1007e271a35fcfc9959b769807d7b2591d64d5fb (diff) | |
download | gcc-c940f36d6862730e5ef8576dd48dfc57868b99ab.zip gcc-c940f36d6862730e5ef8576dd48dfc57868b99ab.tar.gz gcc-c940f36d6862730e5ef8576dd48dfc57868b99ab.tar.bz2 |
c-tree.texi (ARRAY_REF): Say what type of expression must be.
* doc/c-tree.texi (ARRAY_REF): Say what type of expression must be.
(ARRAY_RANGE_REF): Added description.
From-SVN: r42855
Diffstat (limited to 'gcc/doc/c-tree.texi')
-rw-r--r-- | gcc/doc/c-tree.texi | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/doc/c-tree.texi b/gcc/doc/c-tree.texi index ad9cb94..9a1ee2f 100644 --- a/gcc/doc/c-tree.texi +++ b/gcc/doc/c-tree.texi @@ -2017,7 +2017,15 @@ always @code{a - a/b} where the division is as if computed by a 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. +elements. The type of these expressions must be the type of a component of +the array. + +@item ARRAY_RANGE_REF +These nodes represent access to a range (or ``slice'') of an array. The +operands are the same as that for @code{ARRAY_REF} and have the same +meanings. The type of these expressions must be an array whose component +type is the same as that of the first operand. The range of that array +type determines the amount of data these expressions access. @item EXACT_DIV_EXPR Document. |