diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2001-06-04 13:21:38 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-06-04 09:21:38 -0400 |
commit | b4e3fabb4d782befffdfc0694e9e2aa7c49cef07 (patch) | |
tree | e79ce033c0250b6636b696185f9b705119768656 /gcc/tree.def | |
parent | c7d468e6983d3562c3641d4a0f35a44c8617ab05 (diff) | |
download | gcc-b4e3fabb4d782befffdfc0694e9e2aa7c49cef07.zip gcc-b4e3fabb4d782befffdfc0694e9e2aa7c49cef07.tar.gz gcc-b4e3fabb4d782befffdfc0694e9e2aa7c49cef07.tar.bz2 |
tree.def (ARRAY_RANGE_REF): New code.
* tree.def (ARRAY_RANGE_REF): New code.
* alias.c (handled_component_p, can_address_p): Handle it.
* dwarf2out.c (loc_descriptor_from_tree): Likewise.
* explow.c (set_mem_attributes): Likewise.
* expr.c (expand_assignment, get_inner_reference): Likewise.
(expand_expr, expand_expr_unaligned, do_jump): Likewise.
* fold-const.c (operand_equal_p): Likewise.
* tree.c (staticp, stabilize_reference): Likewise.
* varasm.c (decode_addr_const): Likewise.
From-SVN: r42848
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). |