aboutsummaryrefslogtreecommitdiff
path: root/cpu/simplify.inc
diff options
context:
space:
mode:
authorChristoph Weinmann <christoph.t.weinmann@intel.com>2016-08-17 16:05:37 +0200
committerBernhard Heckel <bernhard.heckel@intel.com>2016-09-07 12:08:48 +0200
commit3067104c36cd8405ef1a90f39917ee0d3b1c6b13 (patch)
tree840c0b1e84c97638a1524c5e39aebe102aefca50 /cpu/simplify.inc
parentef4f0c7dc7d0a0ad2f2941ae8035da63756352ec (diff)
downloadgdb-3067104c36cd8405ef1a90f39917ee0d3b1c6b13.zip
gdb-3067104c36cd8405ef1a90f39917ee0d3b1c6b13.tar.gz
gdb-3067104c36cd8405ef1a90f39917ee0d3b1c6b13.tar.bz2
fortran: calculate elements of a subarray using a provided stride value
The stride value can be a positive or negative integer, but may not be zero. If no stride is provided, use the default value 1 to print all elements inside the range. 1| program prog 2| integer :: ary(10) = (/ (i, i=1, 10) /) 3| end program prog (gdb) print ary(1:10:2) $3 = (1, 3, 5, 7, 9) 2013-11-27 Christoph Weinmann <christoph.t.weinmann> * eval.c (value_f90_subarray): Add range size calculation for stride based ranges, and evaluation of user stride parameters. Add check for matching user input to array bounds. * valops.c (value_slice): Add call parameter with default stride value for calling value_slice_1. * valops.c (value_slice_1): Add function parameter for stride length in the return subarray. Calculate array elements based on stride value. * value.h: Add stride parameter to declaration of value_slice_1. Signed-off-by: Christoph Weinmann <christoph.t.weinmann@intel.com>
Diffstat (limited to 'cpu/simplify.inc')
0 files changed, 0 insertions, 0 deletions