]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
fortran: enable parsing of stride parameter for subranges
authorChristoph Weinmann <christoph.t.weinmann@intel.com>
Wed, 1 Jun 2016 13:11:24 +0000 (15:11 +0200)
committerBernhard Heckel <bernhard.heckel@intel.com>
Wed, 7 Sep 2016 10:08:47 +0000 (12:08 +0200)
commitef4f0c7dc7d0a0ad2f2941ae8035da63756352ec
tree22f7c308b24b86525171638f585933275c0b601a
parent57113d3763d3890eef283e53706c6654b017ab51
fortran: enable parsing of stride parameter for subranges

Allow the user to provide a stride parameter for Fortran
subarrays.  The stride parameter can be any integer except
'0'.  The default stride value is '1'.

2013-11-27  Christoph Weinmann  <christoph.t.weinmann@intel.com>

* eval.c (value_f90_subarray): Add expression evaluation
for a stride parameter in a Fortran range expression.
* expression.h (range_type): Add field to enum to show when
a stride value was provided by the user.
* f-exp.y: Add yacc rules for writing info on the elt stack
when the user provided a stride argument.
* parse.c (operator_length_standard): Check if a stride
value was provided, and increment argument counter
accordingly.

Signed-off-by: Christoph Weinmann <christoph.t.weinmann@intel.com>
gdb/eval.c
gdb/expression.h
gdb/f-exp.y
gdb/parse.c
gdb/valops.c