This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r272968 - in /trunk/gcc: ada/ChangeLog ada/layo...
- From: pmderodat at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 03 Jul 2019 08:14:15 -0000
- Subject: r272968 - in /trunk/gcc: ada/ChangeLog ada/layo...
Author: pmderodat
Date: Wed Jul 3 08:14:15 2019
New Revision: 272968
URL: https://gcc.gnu.org/viewcvs?rev=272968&root=gcc&view=rev
Log:
[Ada] Fix bogus error on array with overaligned scalar component
The compiler would wrongly reject an alignment clause larger than 8 on
the component type of an array of scalars, which is valid albeit
pathological.
2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
gcc/ada/
* layout.adb (Layout_Type): Do not set the component size of an
array with a scalar component if the component type is
overaligned.
gcc/testsuite/
* gnat.dg/alignment14.adb: New testcase.
Added:
trunk/gcc/testsuite/gnat.dg/alignment14.adb
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/layout.adb
trunk/gcc/testsuite/ChangeLog