]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix wrong value of 'Size for slices of bit-packed arrays (2)
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 12 Dec 2019 10:02:55 +0000 (10:02 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 12 Dec 2019 10:02:55 +0000 (10:02 +0000)
commit955379e4ed77883365cd041840bb17245810c095
tree7201b41fb940173e82ed415219cb5e03390d695b
parent16b5f07b5d210a7ae55576043855f50fa72f55db
[Ada] Fix wrong value of 'Size for slices of bit-packed arrays (2)

2019-12-12  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* exp_attr.adb (Expand_Size_Attribute): Look directly at the
prefix to detect the bit-packed slices.  Apply the checks last
in case the attribute needs to be processed by the back-end.
* exp_ch4.adb (Expand_N_Slice): Do not create a temporary for
a prefix of the Size attribute.

From-SVN: r279293
gcc/ada/ChangeLog
gcc/ada/exp_attr.adb
gcc/ada/exp_ch4.adb