diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2024-05-19 15:45:34 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2024-06-20 10:50:54 +0200 |
commit | ce59982c28e19b2c478e12e4afc7b03e8793498b (patch) | |
tree | ff5d8bd71fa4c64f5b5799d59c9de1184b6c8467 /gcc/ada/init.c | |
parent | 664e47e64cdb8b12dbf7051b9bda9fbac54fb27a (diff) | |
download | gcc-ce59982c28e19b2c478e12e4afc7b03e8793498b.zip gcc-ce59982c28e19b2c478e12e4afc7b03e8793498b.tar.gz gcc-ce59982c28e19b2c478e12e4afc7b03e8793498b.tar.bz2 |
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.
Diffstat (limited to 'gcc/ada/init.c')
0 files changed, 0 insertions, 0 deletions