aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2019-09-19 08:12:52 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-09-19 08:12:52 +0000
commit348c3ae62ec5579323defd9179aa6b870e0b744b (patch)
tree7c87e2612448a5939978a961e177de85ccd66310 /gcc/ada/gcc-interface
parente516702202bcdc26181cf9fab120fcb15ca0c15d (diff)
downloadgcc-348c3ae62ec5579323defd9179aa6b870e0b744b.zip
gcc-348c3ae62ec5579323defd9179aa6b870e0b744b.tar.gz
gcc-348c3ae62ec5579323defd9179aa6b870e0b744b.tar.bz2
[Ada] Fix fallout of previous change for bit-packed arrays
This fixes a regression introduced by the previous change that improved the handling of explicit by-reference mechanism. For the very specific case of a component of a bit-packed array, the front-end still needs to insert a copy around the call because this is where the rewriting into the sequence of mask-and-shifts is done for the code generator. 2019-09-19 Eric Botcazou <ebotcazou@adacore.com> gcc/ada/ * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Add Bit_Packed_Array parameter and documet it. Always insert a copy if it is set True. (Expand_Actuals): Adjust the calls to Add_Simple_Call_By_Copy_Code. gcc/testsuite/ * gnat.dg/pack26.adb: New testcase. From-SVN: r275933
Diffstat (limited to 'gcc/ada/gcc-interface')
0 files changed, 0 insertions, 0 deletions