]> gcc.gnu.org Git - gcc.git/commit
ada: Enforce strict alignment for array types with aliased component
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 19 May 2024 13:45:34 +0000 (15:45 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 20 Jun 2024 08:50:54 +0000 (10:50 +0200)
commitce59982c28e19b2c478e12e4afc7b03e8793498b
treeff5d8bd71fa4c64f5b5799d59c9de1184b6c8467
parent664e47e64cdb8b12dbf7051b9bda9fbac54fb27a
ada: Enforce strict alignment for array types with aliased component

This was initially implemented as part of AI12-001 but immediately disabled
because it breaks Florist on 32-bit platforms.  However, it is possible to
reenable it in almost all cases without affecting Florist, and the -gnatd_l
switch can now be used to disable it again.

gcc/ada/
* debug.adb (d_l): Document new usage for the compiler.
* freeze.adb (Check_Strict_Alignment): Set the Strict_Alignment
flag on array types with aliased component, except if the
component size is equal to the storage unit or the -gnatd_l switch
is specified.
gcc/ada/debug.adb
gcc/ada/freeze.adb
This page took 0.057357 seconds and 5 git commands to generate.