aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.cc
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2022-09-28 11:24:49 -0400
committerMarc Poulhiès <poulhies@adacore.com>2022-10-06 11:22:48 +0200
commit3e7ff131f47f2a07c497af1c5b2df6bf1ba842fb (patch)
tree49f7bc25bda32d37fbc73d4d9827ad264ed07936 /gcc/ada/gcc-interface/utils.cc
parent5a841af88be1ce4ff1c69cbb76a5033f2ceec3d6 (diff)
downloadgcc-3e7ff131f47f2a07c497af1c5b2df6bf1ba842fb.zip
gcc-3e7ff131f47f2a07c497af1c5b2df6bf1ba842fb.tar.gz
gcc-3e7ff131f47f2a07c497af1c5b2df6bf1ba842fb.tar.bz2
ada: Clean up slice-of-component optimization
In the recursive case of Volatile_Or_Independent = False for array types, fall through into later checks, so for example we check the type of the prefix of a slice. The pattern here is "return True in certain cases, otherwise fall through into the final 'return False'". Remove check for "Ndim = 1"; if Slices is True, then the number of dimensions is necessarily 1, because Ada doesn't have multi-dimensional slices. gcc/ada/ * exp_ch5.adb (Expand_Assign_Array_Loop_Or_Bitfield): Minor cleanups.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.cc')
0 files changed, 0 insertions, 0 deletions