diff options
Diffstat (limited to 'gcc/tree.def')
-rw-r--r-- | gcc/tree.def | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/tree.def b/gcc/tree.def index 760600b..fe1fddb 100644 --- a/gcc/tree.def +++ b/gcc/tree.def @@ -1,6 +1,7 @@ /* This file contains the definitions and documentation for the tree codes used in the GNU C compiler. - Copyright (C) 1987, 1988, 1993, 1995, 1997, 1998, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1987, 1988, 1993, 1995, 1997, 1998, 2000, 2001 + Free Software Foundation, Inc. This file is part of GNU CC. @@ -369,10 +370,15 @@ DEFTREECODE (INDIRECT_REF, "indirect_ref", 'r', 1) /* Pascal `^` on a file. One operand, an expression for the file. */ DEFTREECODE (BUFFER_REF, "buffer_ref", 'r', 1) -/* Array indexing in languages other than C. +/* Array indexing. Operand 0 is the array; operand 1 is a (single) array index. */ DEFTREECODE (ARRAY_REF, "array_ref", 'r', 2) +/* Likewise, except that the result is a range of the array. The starting + index of the array is taken from operand 0 and the size of the range + is taken from the type of the expression. */ +DEFTREECODE (ARRAY_RANGE_REF, "array_range_ref", 'r', 2) + /* Constructor: return an aggregate value made from specified components. In C, this is used only for structure and array initializers. Also used for SET_TYPE in Chill (and potentially Pascal). |