[Ada] Fix error on too large size clause for bit-packed array
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 29 Dec 2021 22:33:21 +0000 (23:33 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 10 Jan 2022 09:38:44 +0000 (09:38 +0000)
commit68adddccb139f87ff705fd744eb3771fc2c6497a
treef3148c8044f1c2f22056ff12a79d9ad633568232
parentb942847f787fc5765bdae95550ddf0de690b225c
[Ada] Fix error on too large size clause for bit-packed array

gcc/ada/

* exp_pakd.adb (Install_PAT): Do not reset the alignment here.
* layout.adb (Layout_Type): Call Adjust_Esize_Alignment after having
copied the RM_Size onto the Esize when the latter is too small.
gcc/ada/exp_pakd.adb
gcc/ada/layout.adb