diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2023-10-20 10:26:23 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-11-21 10:57:43 +0100 |
commit | 4d011701c074cac9bab7edfcf07c1868f0472177 (patch) | |
tree | 0a05cc16cafb2598cf180bf1b2cdf47d88846099 /gcc/tree-vect-loop.cc | |
parent | 1f61f81d6ce2fe9c0ee0d833d216b848e0ad0ae4 (diff) | |
download | gcc-4d011701c074cac9bab7edfcf07c1868f0472177.zip gcc-4d011701c074cac9bab7edfcf07c1868f0472177.tar.gz gcc-4d011701c074cac9bab7edfcf07c1868f0472177.tar.bz2 |
ada: Fix issue with indefinite vector of overaligned unconstrained array
The problem is that the aligning machinery is not consistently triggered,
depending on whether a constrained view or the nominal unconstrained view
of the element type is used to perform the allocations and deallocations.
gcc/ada/
* gcc-interface/decl.cc (gnat_to_gnu_entity) <E_Array_Subtype>: Put
the alignment directly on the type in the constrained case too.
* gcc-interface/utils.cc (maybe_pad_type): For an array type, take
the alignment of the element type as the original alignment.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions