* expression.h (OP_LABELED): New operator, for Chill
authorPer Bothner <per@bothner.com>
Fri, 20 Jan 1995 23:45:21 +0000 (23:45 +0000)
committerPer Bothner <per@bothner.com>
Fri, 20 Jan 1995 23:45:21 +0000 (23:45 +0000)
commitdcda44a07a5fae20fc6ab26e07229984f87b7172
tree1fc99b3348a3486686f52eafb5d4fe11a18ef5d4
parentf34c87666e4020cfd61a4d8d1084f03c9f3038d2
* expression.h (OP_LABELED):  New operator, for Chill
labeled structre tuples.
* ch-exp.y (tuple_element, named_record_element, tuple_elements):
New non-terminals, to handle labeled structure tuples.
(tuple):  Re-define using tuple_elements.
* eval.c (evaluate_labeled_field_init):  New function, to handle
initialization of structure fields, possibly using OP_LABELED.
(evaluate_subexp):  Use it.
* expprint.c (print_subexp case):  For OP_ARRAY, use Chill syntax
for Chill.  Handled OP_LABELED.
* parse.c (length_of_subexp, prefixify_subexp):  Handle OP_LABELED.

* eval.c (evaluate_subexp):  Handle Chill Powerset tuples.
* valarith.c (value_bit_index):  Just treat bitstring as represented
by an array of bytes.  Alignment is handled by compiler.
gdb/ChangeLog
gdb/ch-exp.y
gdb/eval.c
gdb/expprint.c
gdb/parse.c
gdb/valarith.c